You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the following
$categories = array();
foreach ($em->getRepository('Noticias\Entity\Category')->findBy(array(), array('title' => 'ASC')) as $item) {
$categories[strval($item->getCatid())] = $item->getTitle();
}
$col = new Column\Select('catid','s');
$col->setLabel('Categoría');
$col->setReplaceValues($categories,false);
$grid->addColumn($col);
But When I got the select I get:
-BacalarCancúnCaribe MexicanoChetumalCobáCozumelEl EstadoEventosMexican CaribbeanPlaya del CarmenPolíticaPuerto MorelosRiviera MayaTextosTulum
Where the values not correspond with the values in the array that I have sended, I have noticed that if I put some string in the array key then the Select goes right, but It don't correspond with the values for replace.
The text was updated successfully, but these errors were encountered:
I have the following
$categories = array();
foreach ($em->getRepository('Noticias\Entity\Category')->findBy(array(), array('title' => 'ASC')) as $item) {
$categories[strval($item->getCatid())] = $item->getTitle();
}
$col = new Column\Select('catid','s');
$col->setLabel('Categoría');
$col->setReplaceValues($categories,false);
$grid->addColumn($col);
But When I got the select I get:
-BacalarCancúnCaribe MexicanoChetumalCobáCozumelEl EstadoEventosMexican CaribbeanPlaya del CarmenPolíticaPuerto MorelosRiviera MayaTextosTulum
Where the values not correspond with the values in the array that I have sended, I have noticed that if I put some string in the array key then the Select goes right, but It don't correspond with the values for replace.
The text was updated successfully, but these errors were encountered: