Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
コンソールで dql ステートメントを記述すると非常に便利です。例えば、
./symfony doctrine:dql "from sfGuardUser where id = 8"
しかし、私が試してみても、結合クエリを正しく記述できないようです。私はこれを働かせたいです:
./symfony doctrine:dql "from sfGuardUser s left join s.Profile"
しかし、そうではありません。正しい構文は何ですか?
試してみたところ、通常の結合しか機能しませんでした(左結合ではありません)。
この場合、通常の結合で十分です。(1 人のユーザーは 1 つのプロファイルを持ちます)
./symfony doctrine:dql "from sfGuardUser s join s.Profile"