Laravel use together in relations like with YII
Frage
in Yii framework we can enforce to use JOIN
for relations such as this action:
public function relations() {
return array(
'posts'=>array(self::HAS_MANY, 'Post', 'user_id', 'together'=>false),
);
}
how to use this method in laravel?
Keine korrekte Lösung
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow