1
0
mirror of synced 2025-01-18 14:31:40 +03:00
doctrine2/manual/codes/Basic Components - Query - Relation operators.php

16 lines
303 B
PHP
Raw Normal View History

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