Adote o Lumine e seja feliz, nele vc só precisa fazer isso:
$telefones = new Telefone();
$paciente = new Paciente();
$telefone->alias('t')
->selectAs()
->join($paciente, 'inner', 'p')
->select('p.*')
->find();
depois vc manda o objeto para o Flex
$telefone->allToObject();
para mais informações acesse: http://www.hufersil.com.br/
Att
Luis Carlos
--
Você recebeu esta mensagem porque está inscrito na lista "flexdev"
Para enviar uma mensagem, envie um e-mail para [email protected]
Para sair da lista, envie um email em branco para
[email protected]
Mais opções estão disponíveis em http://groups.google.com/group/flexdev
To unsubscribe from this group, send email to flexdev+unsubscribegooglegroups.com or
reply to this email with the words "REMOVE ME" as the subject.