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
Post a Comment