I am doing a symfony 2 tutorial - Doctrine and Databases.
I created a Pages.php file in Entity / Pages.php
<?php namespace Dproc\MainBundle\Entity; use Doctrine\ORM\Mapping as ORM; class Pages { protected $ID; protected $page_title; protected $page_content; protected $page_category; }
Now I am trying to generate setters and getters for this class with this command.
php app/console doctrine:generate:entities Dproc/MainBundle/Entity/Pages
He reports:
[Doctrine\Common\Annotations\AnnotationException] [Semantical Error] The annotation "@Doctrine\ORM\Mapping\ID" in property Dp roc\MainBundle\Entity\Pages::$ID does not exist, or could not be auto-loade d.
What am I doing wrong?
source share