0 votes

When I create lifecycleCallbacks on an entity, after the last update, two functions are created when exporting:

enter image description here

/**
* @ORM\PrePersist
*/
public function updateTimestamps()
{
}

/**
* @ORM\PreUpdate
*/
public function UpdateTimestamps()
{
}

Secondly, the link to the documentation is not working.

Am I doing something wrong?

in Solved by (160 points)
recategorized by

1 Answer

0 votes

The last update fixed some issues with lifecycle-callbacks and this fix probably also fixed the export in your case. The reason why you're getting two methods is probably that you have two different names.

Compare "updateTimestamps" and "UpdateTimestamps".

Regarding the link, it's probably because Doctrine changed again their URLs without backward compatibility. We will check these links (again... ;-( ).

by Skipper developer (141k points)

Sorry about that, you are right, I had a typo.

No problem, thanks for reporting.