How to make an insert query in DQL

greg0ire picture greg0ire · Jun 22, 2011 · Viewed 12.4k times · Source

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?>"

Answer

Yura picture Yura · Jun 27, 2011

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