1
0
mirror of synced 2024-12-14 07:06:04 +03:00
doctrine2/manual/codes/Basic Components - RawSql - Adding components.php
2006-08-08 09:07:55 +00:00

14 lines
379 B
PHP

<?php
$query = new Doctrine_RawSql($session);
$query->parseQuery("SELECT {entity.*}, {phonenumber.*}
FROM entity
LEFT JOIN phonenumber
ON phonenumber.entity_id = entity.id");
$query->addComponent("entity", "Entity");
$query->addComponent("phonenumber", "Phonenumber");
$entities = $query->execute();
?>