insertdqldoctrine-1.2

How to make an insert query in DQL


I'm working with symfony and I would like to know how I can do a simple insert using the doctrine:dql task.

./symfony doctrine:dql "<what should I put here?>"

Solution

  • You officially cannot INSERT using DQL. Only SELECT, UPDATE and DELETE.