How to set the rules depending on the entity field?

Situation using Cake 3.2.6 in my CostItemsTable, I have a buildRules function /** * Returns a rules checker object that will be used for validating * application integrity. * * @param \Cak...