Bug #32813

Fatal error in Persistance Manager

Added by Jonny over 1 year ago. Updated 11 months ago.

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

0%

Category:-
Target version:TYPO3 Flow Base Distribution - 1.1 RC1
FLOW3 version affected:FLOW3 1.0.2
Votes: 4 (View)

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

Updated by Karsten Dambekalns over 1 year ago

  • FLOW3 version affected changed from FLOW3 1.0.1 to FLOW3 1.0.2

Updated by Karsten Dambekalns about 1 year ago

  • Status changed from New to Accepted
  • Assignee set to Karsten Dambekalns

Updated by Karsten Dambekalns about 1 year ago

  • Target version set to 1.0.5

Updated by Karsten Dambekalns 12 months ago

  • Target version changed from 1.0.5 to 1.1 RC1

Updated by Karsten Dambekalns 11 months 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!

Also available in: Atom PDF