doctrine / mongodb-odm

The Official PHP MongoDB ORM/ODM
https://www.doctrine-project.org/projects/doctrine-mongodb-odm/en/latest/
MIT License
1.09k stars 504 forks source link

@PreUpdate & EmbedMany #7

Closed dasher closed 14 years ago

dasher commented 14 years ago

We're seeing that a PreUpdate hook is causing the document not to update embedded documents without errors - even if array('safe' => true) is used on the flush.

An example:

/** @PreUpdate */
public function incrementUpdatedAt() {
    $this->updatedAt = new \DateTime();
}
avalanche123 commented 14 years ago

please create a test case and a jira ticket here http://www.doctrine-project.org/jira/secure/Dashboard.jspa

dasher commented 14 years ago

Done - http://www.doctrine-project.org/jira/browse/MODM-56 :)