In a class function i need to know if the current class is called by another class. Debugging with netbeans/xdebug i can see this class instance has a property called *yii\base\Model*__instances (the current class extends yii\base\Model).
*yii\base\Model*__instances is an array and inside there's an instance of the different classes. How can i get the key or classname of the first element of this array? (in this case app\models\User) Can i access __instances at all?
