We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 799acba commit f5ef54fCopy full SHA for f5ef54f
README.md
@@ -54,7 +54,8 @@ CREATE TABLE `admin` (
54
To fake the inheritance between the two tables your code must look like this.
55
56
```php
57
-use jlorente\db\ActiveRecordInheritanceTrait;
+use jlorente\db\ActiveRecordInheritanceTrait,
58
+ jlorente\db\ActiveRecordInheritanceInterface;
59
use yii\db\ActiveRecord;
60
61
class User extends ActiveRecord {
@@ -68,7 +69,7 @@ class User extends ActiveRecord {
68
69
}
70
71
-class Admin extends ActiveRecord {
72
+class Admin extends ActiveRecord implements ActiveRecordInheritanceInterface {
73
use ActiveRecordInheritanceTrait;
74
75
public function tableName() {
0 commit comments