Created
June 28, 2011 11:20
-
-
Save loalf/1050930 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Doctrine_Query::create() | |
->select('m.*, t.field as translated_field') | |
->from('Model m') | |
->leftJoin('m.Translation t) | |
->where('t.field = ?', $value) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
eso mismo... doctrine no se lo curra solo... o sea que toca escribir... yo además añado ya la cultura si lo necesitas en el join para minimizar la consulta
->leftJoin('m.Translation t WITH t.lang = 'es... o ca... o lo que sea')