public function readyForInsert() { if (parent::readyForInsert()) { return true; } return parent::checkRequiredProperties(self::class); }