class Entity
{
...
//custom getter
public function getFullName()
{
return $this->getFirstName() . ' ' . $this->getLastName();
}
}
In your EntityAdmin:
protected function configureListFields(ListMapper $listMapper)
{
$listMapper
->add('fullName', 'doctrine_orm_string')
->add('_action', 'actions', array(
'actions' => array(
'view' => array(),
'edit' => array(),
'delete' => array(),
)
))
;
}
No comments:
Post a Comment