Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function init() |
||
28 | { |
||
29 | if (!$this->parentClassName) { |
||
30 | throw new InvalidConfigException('parentClassName must be set for ' . static::class); |
||
31 | } |
||
32 | |||
33 | /** @var MyActiveRecord $parent */ |
||
34 | $parent = new $this->parentClassName; |
||
35 | $this->parentIdColumn = $parent::primaryKey()[0]; |
||
36 | |||
37 | |||
38 | parent::init(); |
||
39 | } |
||
51 | } |