how to set a limt of results with the object image. i just want to have on result for the listmapper.
i know '_sort_by', but does exist a maximun results that i can put to my listmapper ??? thanks
protected function configureListFields(ListMapper $listMapper) {
$listMapper
->addIdentifier('name', null, array('route' => array('name' => 'show')))
->add('country')
->add('category')
->add('description')
->add('organisation', null, array('route' => array('name' => 'show')))
->add('competition', null, array('route' => array('name' => 'show')))
->add('image')
->add('created')
->add('updated')
->add('_action', null, array(
'actions' => array(
'show' => array(),
'edit' => array(),
'delete' => array(),
)
))
;
}
ps: like add(image', null, array('limit' => 1)) but it's not working
$this->datagridValues = array( '_page' => 1, '_per_page' => 50, /** '_sort_order' => 'DESC', // sort direction */ );? - Imanali Mamadiev