mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #11813] [RFC] Expose QueryBuilder::getType #13276
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/doctrine/orm/pull/11813
State: closed
Merged: Yes
I have an implementation where I extends the QueryBuilder in order to provide extra methods.
In one of them, I'd like an easy way to know if the queryBuilder is creating a select, an update or a delete query.
I could extends
select,addSelect,updateanddeleteto keep a state with the type of the current query, but it seems like the QueryBuilder already does this. So I'd like to expose this information.Are you okay with this ?