Una consulta, cuando realizo un DQL:
Código PHP:
$menu = Zend_Registry::get('em')
->createQuery('SELECT m FROM App\Models\Menu m')
->getResult();
Código HTML:
[1] => App\Models\Menu Object ( [id:App\Models\Menu:private] => 2 [menu:App\Models\Menu:private] => Registro [estado:App\Models\Menu:private] => A [fecha:App\Models\Menu:private] => DateTime Object ( [date] => 2013-04-12 13:12:31 [timezone_type] => 3 [timezone] => Europe/Berlin ) [icono:App\Models\Menu:private] => [orden:App\Models\Menu:private] => 0 [menus:App\Models\Menu:private] => App\Models\Menu Object ( [id:App\Models\Menu:private] => 1 [menu:App\Models\Menu:private] => Gestión Documental [estado:App\Models\Menu:private] => A [fecha:App\Models\Menu:private] => DateTime Object ( [date] => 2013-04-12 13:21:44 [timezone_type] => 3 [timezone] => Europe/Berlin ) [icono:App\Models\Menu:private] => [orden:App\Models\Menu:private] => 0 [menus:App\Models\Menu:private] => ) )