Using mysql keyword as column in Doctrine Entity – PHP

if you want to use some of the mysql keywords like group or count as your column name add the back tick(`) on the column definition

@ORMColumn(name="`group`"..)

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*