KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have one problem: in a process, I want to cancel saving an entity in prePersit function: /** * @ORM\PrePersist */ public function setTranslationsValue2() { if((null===$this->getContent())or($this->getContent()=='')) { //wanna stop saving this item??? return false; } } At above function, I don't want to save this entity any more, and don't want to stop my process (the process still save another s)
Tags (comma-separated)
Save Edits
Cancel