Replacement for Postgres SERIAL (deprecation of IDENTITY) #10781
-
I'm getting a deprecation notice (#9833) when using Using Apparently as soon as an entity is persisted it will a) be assigned an ID and b) considered "flushed" even if there wasn't a single flush in the entire process of On MariaDB/MySQL
The deprecation notice I get is:
This is somewhat related to #10739 but I didn't want to hijack an already answered question. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
This comment was marked as off-topic.
This comment was marked as off-topic.
-
I'm assuming you mean this only for new entities.
I find this kind of hard to believe. Can you write a test case reproducing the issue? |
Beta Was this translation helpful? Give feedback.
I'm assuming you mean this only for new entities.
I might be wrong, but isn't that what
$entityManager->getUnitOfWork()->isScheduleForInsert($entity)
would do?I find this kind of hard to believe. Can you write a test case reproducing the issue?