2006-08-08 13:07:55 +04:00
|
|
|
<?php
|
2006-08-22 02:51:27 +04:00
|
|
|
$query = new Doctrine_RawSql($conn);
|
2006-08-08 13:07:55 +04:00
|
|
|
|
|
|
|
$query->parseQuery("SELECT {entity.*}, {phonenumber.*}
|
|
|
|
FROM entity
|
|
|
|
LEFT JOIN phonenumber
|
|
|
|
ON phonenumber.entity_id = entity.id");
|
|
|
|
|
|
|
|
$query->addComponent("entity", "Entity");
|
2006-08-31 03:02:12 +04:00
|
|
|
$query->addComponent("phonenumber", "Entity.Phonenumber");
|
2006-08-08 13:07:55 +04:00
|
|
|
|
|
|
|
$entities = $query->execute();
|
|
|
|
?>
|