Bug #32813

Fatal error in Persistance Manager

Added by Jonny over 3 years ago. Updated 5 months ago.

Status:Closed Start date:2011-12-22
Priority:Should have Due date:
Assigned To:Karsten Dambekalns % Done:

0%

Category:-
Target version:-
Affected Flow version:FLOW3 1.0.2

Description

My Model has an OneToOne relation to a party Person Model of the Party Package.

/**
* The Person of this profile
*
* @var \TYPO3\Party\Domain\Model\Person
* @ORM\OneToOne(cascade={"all"})
*/
protected $person;

On altering the electronicAddress by setting the approved to TRUE, the persistance manager throws a Fatal Error:

PHP Fatal error:  Call to a member function getClassName() on a non-object in [...]PersistenceManager_Original.php on line 106 
-> 
$validator = $this->validatorResolver->getBaseValidatorConjunction($classSchema->getClassName());

I fixed this quick and dirty by inserting this line :

if ($classSchema === NULL) return;        

before the getClassName on $classSchema.

btw: im working with version 1.0.2 (couldn't find it in the dropdown list)

History

#1 Updated by Karsten Dambekalns over 3 years ago

  • Affected Flow version changed from FLOW3 1.0.1 to FLOW3 1.0.2

#2 Updated by Karsten Dambekalns over 3 years ago

  • Status changed from New to Accepted
  • Assigned To set to Karsten Dambekalns

#3 Updated by Karsten Dambekalns about 3 years ago

  • Target version set to 1.0.5

#4 Updated by Karsten Dambekalns about 3 years ago

  • Target version changed from 1.0.5 to 1.1 RC1

#5 Updated by Karsten Dambekalns about 3 years ago

  • Status changed from Accepted to Closed

I built some PoC code and all worked as expected using master and 1.1.0-dev. If this is still an issue for you, feel free to reopen and add some code that shows the error. Thanks!

#6 Updated by Christian Müller 5 months ago

  • Target version deleted (1.1 RC1)

Also available in: Atom PDF