I have an Active Record called User
class User extends CActiveRecord
then
have a Register class which extends User
when i call
$model = Register::model()->findByPk(1);
echo get_class($model); // returns User
when i call
$model = CActiveRecord::model(‘Register’)->findByPk(1);
echo get_class($model); // returns Register
Is this a bug? or is that the expected result?