symfony - Get ORM Column name in a controller -


 /**      * @var integer      *      * @orm\column(name="anio_detalle", type="integer")      */     private $detalle; 

is there way column name "anio_detalle" controller.

i know can table name using

$em->getclassmetadata('storebundle:user')->gettablename(); 

but there way column name?

$em->getclassmetadata('acme\myentity')->getfieldname('detalle'); 

Comments

Popular posts from this blog

sql server - MSSQL Text and Varchar(MAX) fields shown (MEMO) in DBGrid -

php - Changing the visibility scope of parent methods in child classes -

qml - Is it possible to implement SystemTrayIcon functionality in Qt Quick application -