Accessing type on the interface yii\db\ActiveRecordInterface suggest that you code against a concrete implementation. How about adding an instanceof check?
Loading history...
24
$record->save(false);
25
}
26
}
27
28
/**
29
* @inheritdoc
30
*/
31
public function safeDown()
32
{
33
echo "m190815_143313_UpdateFieldLayouts cannot be reverted.\n";