Project

General

Profile

Evolution #3094

ORM add @HasLifecycleCallbacks

Added by Mickael G. about 6 years ago. Updated 4 months ago.

Status:
Nouveau
Priority:
Normal
Assignee:
Category:
ORM
Target version:
Start date:
10/22/2013
Due date:
% Done:

0%

Estimated time:
Bdc:

Description

http://docs.doctrine-project.org/en/latest/reference/annotations-reference.html#haslifecyclecallbacks
https://en.wikibooks.org/wiki/Java_Persistence/Advanced_Topics#Events

Add interface class PeristantCallBack composés de :

postLoad()
postPersist()
postRemove()
postUpdate()
prePersist()
preRemove()
preUpdate()

if entity is annoted by @HasLifecycleCallbacks decorate all method in the call

In DAO engine juste add on pre/post persistance

if (T typeof(PeristantCallBack) {
    T.PostLoad()
}


Recurrences

History

#3Updated by Mickael G. about 6 years ago

POC in branch

#4Updated by Mickael G. about 6 years ago

Use static method, with db manager on param...
or
Move all method to DAO ?

Also available in: Atom PDF

Go to top
Add picture from clipboard (Maximum size: 200 MB)