DDC-411: Bug in PHPDriver and INHERITANCE_TYPE_JOINED #4904

Closed
doctrinebot opened this Issue Mar 11, 2010 · 2 comments

2 participants

@doctrinebot

Jira issue originally created by user freeakk:

This schema works with xml and yaml drivers, but i get this error with php driver.
All three schemas files was generated from annotation files.
I think, driver reads the inherite table (inventoryUsbGeneric) before the main table (privateBasicHost) and ignores INHERITANCE

user@ubuntu-desktop:/var/www/shelly/bin$ ./gen*db*schema.sh 
PHP Fatal error:  Uncaught exception 'ReflectionException' with message 'Property id does not exist' 
in /var/www/shelly/library/Doctrine/ORM/Mapping/ClassMetadata.php:150

Stack trace:
#0 /var/www/shelly/library/Doctrine/ORM/Mapping/ClassMetadata.php(150): ReflectionClass->getProperty('id')
#1 /var/www/shelly/library/Doctrine/ORM/Mapping/ClassMetadataInfo.php(1184): Doctrine\ORM\Mapping\ClassMetadata->_validateAndCompleteFieldMapping(Array)
#2 /var/www/shelly/application/doctrine/scripts/inventoryUsbGeneric.php(21): Doctrine\ORM\Mapping\ClassMetadataInfo->mapField(Array)
#3 /var/www/shelly/library/Doctrine/ORM/Mapping/Driver/PhpDriver.php(124): require_once('/var/www/shelly...')
#4 /var/www/shelly/library/Doctrine/ORM/Mapping/ClassMetadataFactory.php(250): 
Doctrine\ORM\Mapping\Driver\PhpDriver->loadMetadataForClass('inventoryUsbGen...', 
Object(Doctrine\ORM\Mapping\ClassMetadata))
#5 /var/www/shelly/library/Doctrine/ORM/Mapping/ClassMetadataFactory.php(159): Doctrine\ORM\Mapping\ClassMetadataFactory
->_loadMetadata('inventoryUsbG in /var/www/shelly/library/Doctrine/ORM/Mapping/MappingException.php on line 122

Fatal error: Uncaught exception 'ReflectionException' with message 'Property id does not exist' in 
/var/www/shelly/library/Doctrine/ORM/Mapping/ClassMetadata.php:150
Stack trace:
#0 /var/www/shelly/library/Doctrine/ORM/Mapping/ClassMetadata.php(150): ReflectionClass->getProperty('id')
#1 /var/www/shelly/library/Doctrine/ORM/Mapping/ClassMetadataInfo.php(1184): Doctrine\ORM\Mapping\ClassMetadata->_validateAndCompleteFieldMapping(Array)
#2 /var/www/shelly/application/doctrine/scripts/inventoryUsbGeneric.php(21): Doctrine\ORM\Mapping\ClassMetadataInfo->mapField(Array)
#3 /var/www/shelly/library/Doctrine/ORM/Mapping/Driver/PhpDriver.php(124): require_once('/var/www/shelly...')
#4 /var/www/shelly/library/Doctrine/ORM/Mapping/ClassMetadataFactory.php(250): 
Doctrine\ORM\Mapping\Driver\PhpDriver->loadMetadataForClass('inventoryUsbGen...', Object(Doctrine\ORM\Mapping\ClassMetadata))
#5 /var/www/shelly/library/Doctrine/ORM/Mapping/ClassMetadataFactory.php(159): 
Doctrine\ORM\Mapping\ClassMetadataFactory->_loadMetadata('inventoryUsbG in 
/var/www/shelly/library/Doctrine/ORM/Mapping/MappingException.php on line 122

I attached to this issue the annotations files and the php schemas

@doctrinebot

Issue was closed with resolution "Fixed"

@jwage jwage was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.0-BETA1 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment