Hello,
I would like to know if it's possible to check if a writing action is the first in onAfterWrite method ? I know it's possible in onBeforeWrite method with a test on the existance of the ID :
function onBeforeWrite() {
parent::onBeforeWrite();
if (!$this->ID) {
// first write
}
else {
// next write when updates
}
}
But, in onAfterWrite ?
Thanks.