mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Allow doctrine to work correctly with counters #7241
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?
Originally created by @awwar on GitHub (Nov 3, 2023).
Feature Request
Summary
First of all, I want to say thank you to your team. Doctrine allows complex things to be made very simple, understandable and supportable.
But there are certain things that still have to be processed with raw queries.
For example, increasing counters:
What happens after
flushnow, withoutAsCounterattribute:But it would be cool if, thanks to the
AsCounterattribute, it worked like this:@derrabus commented on GitHub (Nov 5, 2023):
Thank you for your proposal. I'm afraid this feature is a bit too specific to include it in the ORM library.
@awwar commented on GitHub (Nov 5, 2023):
@derrabus Thanks for the answer. Is there any extension point to add this functionality to my project?
I know that i can add a custom type:
But I don’t know how to specify the
$columnNamein theconvertToDatabaseValuemethod.Or is this not the right way and should be done differently?