Hi I have a new Question.
In my application logic i have to catch every set event on the
records.
I have attached some logic to the set methode which is executed on
update and on insert.
This works very well....
But when I have some related objects for example:
$group->name = "User" // should call group::set(name, 'User') => works
as expected
$group->user[0]->name = "Robert" // in my opinion
group::user::set(name, 'Robert')
/*
group and user extend Entity
which implements a set methode.
After doing its job this Entity::set calls parent::set()
*/
I know that the property "user" is accessed over the __get methode
because it is "physically" not available.
Now my question: How can i check if the set methode call is for the
actual ('group') record or for the related record ('user').
Thanks in advance.
Best regards
Robert