Hi,
this code example from doctrine 1.2 manual gives me one phonenumber and areacode for the user:
$q = Doctrine_Query::create()
->from('User u')
->leftJoin('u.Phonenumbers p')
->where('u.id = ?', 1);
$user = $q->fetchOne();
echo $user->Phonenumbers[0]['phonenumber'];
echo $user->Phonenumbers[0]['areacode'];
Is it possible to get the specific phonenumber with areacode = 123 without looping Phonenumbers[]?