$validator ->requirePresence('title', 'create') // required on create, optional on update ->scalar('title') ->notEmptyString('title');