php - Entity doctrine format -


in doctrine created entities name products. showing this.

use doctrine\orm\mapping orm;  /**  * products */ class products {     /**     * @var integer    */ private $id;  /**  * @var string  */ 

and on...i don't find above way normal below format.

use doctrine\orm\mapping orm;  /** * products * * @orm\table() *        @orm\entity(repositoryclass="acme\acmebundle\repository\productsrepository") */ class products { /**  * @var integer  *  * @orm\column(name="id", type="integer")  * @orm\id  * @orm\generatedvalue(strategy="auto")  */ private $id;  /**  * @var string  *  * @orm\column(name="nom", type="string", length=100) 

...

my question is, have done wrong, not able entity files in proper format.

thanks

my guess didn't generate products entity using annotation used yml or xml.


Comments

Popular posts from this blog

How to group boxplot outliers in gnuplot -

cakephp - simple blog with croogo -

bash - Performing variable substitution in a string -