consulta:
Código PHP:
$q = Doctrine_Query::CREATE()
->select('c.nombre AS Nombre')
->from('Cliente c')
->innerJoin('c.Clientexestadia ce')
->where('c.idcliente = ce.idcliente');
$rs = $q->fetchArray();
Código PHP:
Array
(
[0] => Array
(
[Nombre] => Katerine Cecilia
)
)
Código PHP:
$q = Doctrine_Query::CREATE()
->select('c.nombre')
->from('Cliente c')
->innerJoin('c.Clientexestadia ce')
->where('c.idcliente = ce.idcliente');
$rs = $q->fetchArray();
Código PHP:
Array
(
[0] => Array
(
[idcliente] => 4
[nombre] => Katerine Cecilia
)
[1] => Array
(
[idcliente] => 5
[nombre] => Juan
)
[2] => Array
(
[idcliente] => 1
[nombre] => Luis Miguel
)
)