[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3824: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3826: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3827: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3828: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
Next Framework • Ver Tópico - Problema ao carregar DAO

Problema ao carregar DAO

Não deixe de perguntar, solucione aqui suas dúvidas...

Problema ao carregar DAO

Mensagempor marcofarnezi » Qui Jan 26, 2012 12:46 pm

Boa tarde galera...
Seguinte. Tenho um classe que representa item.
Esse item tem um relacionamento com grupo pois item tem grupo.
Quando eu uso o findAll não vem os grupos do item.
O objeto grupo vem vazio.
Como fazer para q o objeto grupo venha settado quando chamo o item?
marcofarnezi
 
Mensagens: 62
Data de registro: Ter Dez 20, 2011 1:59 pm

Re: Problema ao carregar DAO

Mensagempor jtakata » Qui Jan 26, 2012 8:55 pm

Provavelmente na classe do item, o getter do grupo deve estar com anotação Fetchtype=LAZY (ou algo parecido com isso).
jtakata
 
Mensagens: 350
Data de registro: Seg Abr 26, 2010 11:04 pm

Re: Problema ao carregar DAO

Mensagempor rogelgarcia » Sáb Jan 28, 2012 10:50 am

rogelgarcia
Administrador
 
Mensagens: 674
Data de registro: Qua Jul 08, 2009 9:02 am


Retornar para Dúvidas

Quem está online

Usuários vendo este fórum: Nenhum usuário registrado online e 9 visitantes

cron