I have a Model class A and a subclass B.
class A extends \\yii\\base\\Model { public $a1,$a2; } class B extends A { public $b1,$b2; } $o = new B();