Bug #34545

Hint at wrong usage of @ORM\MappedSuperclass not displayed

Added by Ondrej Hatala over 3 years ago. Updated about 3 years ago.

Status:Resolved Start date:2012-03-05
Priority:Could have Due date:
Assigned To:Karsten Dambekalns % Done:

100%

Category:Persistence
Target version:TYPO3 Flow Base Distribution - 1.1 RC1
PHP Version: Complexity:easy
Has patch:No Affected Flow version:FLOW3 1.1.0 beta 1

Description

Doctrine 2 allows usage of @MappedSuperclass without @Entity, but in FLOW3 @Entity annotation is necessary. That's why the hint was added (http://forge.typo3.org/issues/27285).

Nowadays this behaviour is broken, because TYPO3\FLOW3\Reflection\ReflectionService::ensureAggregateRootInheritanceChainConsistency() is executed before the first call to Flow3AnnotationDriver::getClassSchema() and fails.

Proposed solution: add check to ensureAggregateRootInheritanceChainConsistency() do not try to check aggregate roots for schema-less objects.

It is however highly probable that sooner or later this same problem will happen again, so it may be advisable to deal with it in better way.


Related issues

related to TYPO3.Flow - Bug #27285: Exception with /** @MappedSuperclass */ Resolved 2011-06-07
related to TYPO3.Flow - Bug #37547: Exception "No class schema found for "Doctrine\Common\Col... Resolved 2012-05-28

History

#1 Updated by Karsten Dambekalns over 3 years ago

  • Category set to Persistence
  • Status changed from New to Accepted
  • Assigned To set to Karsten Dambekalns
  • Target version set to 1.1

#2 Updated by Karsten Dambekalns about 3 years ago

  • Target version changed from 1.1 to 1.1 RC1

#3 Updated by Karsten Dambekalns about 3 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100
  • Affected Flow version changed from Git master to FLOW3 1.1.0 beta 1

Also available in: Atom PDF