We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey,
is there any possibility to support lifecycle callbacks while bulk inserting? E.g. prePersist oder preUpdate where the created/updated dates are set.
/** * @PrePersist */ public function prePersist(): void { $now = new DateTime(); $this->setCreated($now); $this->setUpdated($now); } /** * @PreUpdate */ public function preUpdate(): void { $this->setUpdated(new DateTime()); }
the entity itself:
/** * @ORM\HasLifecycleCallbacks() */ class Foo { // code }
just dummy code and dummy logic, could be more complex - I just wanted to show u what i mean.
So what do u mean?
The text was updated successfully, but these errors were encountered:
Hello! I didn't have plans for Lifecycle Callbacks. But i'll think if i have time, ill add this functionality.
Sorry, something went wrong.
No branches or pull requests
Hey,
is there any possibility to support lifecycle callbacks while bulk inserting? E.g. prePersist oder preUpdate where the created/updated dates are set.
the entity itself:
just dummy code and dummy logic, could be more complex - I just wanted to show u what i mean.
So what do u mean?
The text was updated successfully, but these errors were encountered: