[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 - Upload oneToMany
Página 1 de 1

Upload oneToMany

MensagemEnviado: Qua Nov 03, 2010 7:40 am
por joaoricardo.junin
Minha dúvida é como eu faço para fazer um mestre detalhes utilizando upload de arquivos ? por exemplo um funcionário possui vários documentos que seriam imagens.

Re: Upload oneToMany

MensagemEnviado: Qua Nov 03, 2010 3:09 pm
por rogelgarcia
Crie uma classe ArquivoFuncionário...

Esse ArquivoFuncionario é que será o detalhe de Funcionario

Esse ArquivoFuncionario terá o campo arquivo... esse campo vc coloca no detalhe para fazer upload...

Re: Upload oneToMany

MensagemEnviado: Qua Nov 03, 2010 3:52 pm
por joaoricardo.junin

Re: Upload oneToMany

MensagemEnviado: Qua Nov 03, 2010 5:03 pm
por rogelgarcia
Expressou bem sim...

No caso.. vc nao vai ter um List<Arquivo>

vc vai ter um List<ArquivoFuncionario>

e o ArquivoFuncionario tem

Arquivo documento;