It only happens when i delete the relate object without leaving it in the trash. There is no update of my "calling" object in this case but if i delete the related object and leave it in the trash, then my "calling" object is updated and the related object attribute value is set to 0.
I can't see why there is a difference between the two operations..
oups little mistake: the attribute "calling" object is not set to 0 when the deleted related object is left in the trash. It seems i don't have an error in my log just because the fetch is still possible even if placed in the trash but it doesn't answer my first question about the update of my attribute, if this is a normal behaviour.
I would assume that removing an object updates all reverse related objects but it seems it's not the case :-(
When you delete an object, the "fixReverseRelations" function (ezcontentobject.php) is called
This function call the "fixRelatedObjectItem" function of the datatype linked to your object
In your case, the datatype is : ezobjectrelation But the fixRelatedObjectItem is not implemented in this datatype so , the fixRelatedObjectItem function used here is the one of the eZDataType class who does nothing
function fixRelatedObjectItem( $contentObjectAttribute, $objectID, $mode )
{
}