1
0
mirror of synced 2024-12-15 23:56:02 +03:00
doctrine2/manual/docs/Basic Components - Query - Relation operators.php

8 lines
497 B
PHP
Raw Normal View History

2006-07-24 01:08:06 +04:00
Doctrine provides two relation operators: '.' aka dot and ':' aka colon.
<br \><br \>
The dot-operator is used for SQL LEFT JOINs and the colon-operator is used
for SQL INNER JOINs. Basically you should use dot operator if you want for example
to select all users and their phonenumbers AND it doesn't matter if the users actually have any phonenumbers.
<br \><br \>
On the other hand if you want to select only the users which actually have phonenumbers you should use the colon-operator.