[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[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/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/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/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 - Bug no CRUD? [RESOLVIDO]

Bug no CRUD? [RESOLVIDO]

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

Bug no CRUD? [RESOLVIDO]

Mensagempor willinos » Sáb Ago 07, 2010 2:11 pm

Ola Senhores,
Em primeiro lugar parabens pelo framework, excelente mesmo, estou devorando a documentação.
Estou com um problema, os links editar das listagens estao com algum problema, pois ao clicar neles retorna um erro da aplicação: "query did not return a unique result:2", isto acontece qdo a listagem tem mais de um registro.
Alguém poderia me ajudar?

att

Willinos
Editado pela última vez por willinos em Qua Ago 11, 2010 1:24 am, num total de 1 vezes
willinos
 
Mensagens: 47
Data de registro: Sáb Ago 07, 2010 2:06 pm

Re: Bug no CRUD?

Mensagempor rafael.roque » Sáb Ago 07, 2010 2:44 pm

Olá,

esse erro ocorre quando vc está esperando um único registro,mas sua consulta retornou uma lista de registros.

Poste seu stack trace
rafael.roque
 
Mensagens: 21
Data de registro: Qua Ago 04, 2010 10:14 am

Re: Bug no CRUD?

Mensagempor willinos » Sáb Ago 07, 2010 2:55 pm

willinos
 
Mensagens: 47
Data de registro: Sáb Ago 07, 2010 2:06 pm

Re: Bug no CRUD?

Mensagempor rafael.roque » Sáb Ago 07, 2010 2:58 pm

coloca aqui o método doEditar da classe UsuárioCrud
rafael.roque
 
Mensagens: 21
Data de registro: Qua Ago 04, 2010 10:14 am

Re: Bug no CRUD?

Mensagempor willinos » Sáb Ago 07, 2010 3:06 pm

willinos
 
Mensagens: 47
Data de registro: Sáb Ago 07, 2010 2:06 pm

Re: Bug no CRUD?

Mensagempor rafael.roque » Sáb Ago 07, 2010 3:11 pm

Bastante estranho....

Esse CRUD que vc tá fazendo,é baseado no tutorial da MundoJ?
rafael.roque
 
Mensagens: 21
Data de registro: Qua Ago 04, 2010 10:14 am

Re: Bug no CRUD?

Mensagempor willinos » Sáb Ago 07, 2010 3:16 pm

willinos
 
Mensagens: 47
Data de registro: Sáb Ago 07, 2010 2:06 pm

Re: Bug no CRUD?

Mensagempor rafael.roque » Sáb Ago 07, 2010 3:24 pm

Realmente tá faltando o id...

Coloca aqui o jsp da tela de listagem....
rafael.roque
 
Mensagens: 21
Data de registro: Qua Ago 04, 2010 10:14 am

Re: Bug no CRUD?

Mensagempor willinos » Sáb Ago 07, 2010 3:26 pm

willinos
 
Mensagens: 47
Data de registro: Sáb Ago 07, 2010 2:06 pm

Re: Bug no CRUD?

Mensagempor rafael.roque » Sáb Ago 07, 2010 3:32 pm

o id da entidade tá como Integer ou Long?
rafael.roque
 
Mensagens: 21
Data de registro: Qua Ago 04, 2010 10:14 am

Próximo

Retornar para Dúvidas

Quem está online

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

cron