BelongsTo( 'MetaTemplates' ); $this->setDisplayField('field'); } public function validationDefault(Validator $validator): Validator { $validator ->notEmptyString('field') ->notEmptyString('type') ->numeric('meta_template_id') ->notBlank('meta_template_id') ->requirePresence(['meta_template_id', 'field', 'type'], 'create'); return $validator; } }