Reputation: 28621
I want to use Doctrine's DBAL Query Builder to insert record into database.
I've found that this in fact is possible in the latest documentation via insert
method:
http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/query-builder.html#building-a-query
However, I have the latest version of DBAL installed via Composer and it has no such methods.
Why is that?
What are my alternatives?
Upvotes: 0
Views: 2426
Reputation: 8359
I guess you installed the latest stable (2.4.2) and this version contains no insert
method in the QueryBuilder.
If you check the same file on the master branch this contains the insert
method
I think there is something wrong with the documentation as I can't find anywhere how to view the documentation of the latest stable ...
Upvotes: 1