Please report this on doctrine-project.org/jira, this is the Symfony not the 
Doctrine Mailinglist.

On Wed, 8 Dec 2010 12:00:40 -0800 (PST)
mrBurly <[email protected]> wrote:

> VERSION:
> Symfony version 2.0.0-DEV - app
> 
> COMMAND:
> app/console doctrine:mapping:import "Bundle\HelloBundle" annotation --
> em=default -v
> 
> MESSAGE:
> [Doctrine\ORM\Mapping
> \MappingException]
>   No identifier/primary key specified for Entity 'TblAccessrequest'.
> Every Entity must have an identifier/primary key.
> 
> BACKTRACE:
> () at /var/www/symfony-sandbox/src/vendor/doctrine/lib/Doctrine/ORM/
> Mapping/MappingException.php:37
>  Doctrine\ORM\Mapping\MappingException::identifierRequired() at /var/
> www/symfony-sandbox/src/vendor/doctrine/lib/Doctrine/ORM/Mapping/
> ClassMetadataFactory.php:284
>  Doctrine\ORM\Mapping\ClassMetadataFactory->loadMetadata() at /var/www/
> symfony-sandbox/src/vendor/doctrine/lib/Doctrine/ORM/Mapping/
> ClassMetadataFactory.php:175
>  Doctrine\ORM\Mapping\ClassMetadataFactory->getMetadataFor() at /var/
> www/symfony-sandbox/src/vendor/doctrine/lib/Doctrine/ORM/Mapping/
> ClassMetadataFactory.php:123
>  Doctrine\ORM\Mapping\ClassMetadataFactory->getAllMetadata() at /var/
> www/symfony-sandbox/src/vendor/symfony/src/Symfony/Bundle/
> DoctrineBundle/Command/ImportMappingDoctrineCommand.php:98
>  Symfony\Bundle\DoctrineBundle\Command\ImportMappingDoctrineCommand-
> >execute() at /var/www/symfony-sandbox/src/vendor/symfony/src/Symfony/
> Component/Console/Command/Command.php:149
>  Symfony\Component\Console\Command\Command->run() at /var/www/symfony-
> sandbox/src/vendor/symfony/src/Symfony/Component/Console/
> Application.php:187
>  Symfony\Component\Console\Application->doRun() at /var/www/symfony-
> sandbox/src/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Console/
> Application.php:74
>  Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /var/
> www/symfony-sandbox/src/vendor/symfony/src/Symfony/Component/Console/
> Application.php:113
>  Symfony\Component\Console\Application->run() at /var/www/symfony-
> sandbox/app/console:11
> 
> FINDINGS:
> Doctrine/DBAL/Schema/Table.php::_addIndex(...) never assigns a
> 'primary' key to the "$this->_indexes" array, which is being checked
> in Doctrine/ORM/Mapping/Driver/DatabaseDriver.php on line 147
> 
> NAIVE SOLUTION:
> Doctrine/DBAL/Schema/Table.php::_addIndex(...):line(409)
> $this->_primaryKeyName = $indexName;
> +$this->_indexes['primary']=$indexCandidate;
> 
> ME:
> Lance Caraccioli
> 
> 
> -- 
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.com
> 
> You received this message because you are subscribed to the Google
> Groups "symfony developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/symfony-devs?hl=en
> 

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to