Answer the question
In order to leave comments, you need to log in
How to get the name of the called heir class in Yii ActiveRecord?
I tried this: $class = lcfirst(get_class($this->owner));
in the bottom of the methods.
I catch:
Property " Roles.owner " is not defined.
Answer the question
In order to leave comments, you need to log in
owner - this is in behaviors, and so - as usual in php php.net/manual/ru/function.get-called-class.php
php.net/manual/vote-note.php?id=71064&page=languag...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question