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?>"
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?>"
You officially cannot INSERT using DQL. Only SELECT, UPDATE and DELETE.
With Doctrine you don´t use INSERT´s. This type of query must be made by the Entity Manager, through its method PERSIST.
© 2022 - 2024 — McMap. All rights reserved.