1
0
mirror of synced 2024-12-14 15:16:04 +03:00
doctrine2/manual/codes/Basic Components - Query - Relation operators.php

16 lines
303 B
PHP
Raw Normal View History

2006-07-24 01:08:06 +04:00
<?php
2006-12-04 02:40:32 +03:00
$query->from('User u')->innerJoin('u.Email e');
2006-07-24 01:08:06 +04:00
$query->execute();
// executed SQL query:
// SELECT ... FROM user INNER JOIN email ON ...
2006-12-04 02:40:32 +03:00
$query->from('User u')->leftJoin('u.Email e');
2006-07-24 01:08:06 +04:00
$query->execute();
// executed SQL query:
// SELECT ... FROM user LEFT JOIN email ON ...
?>