I am trying to validate a compound field in the model, so I tried:
$this->validate(new Uniqueness(array(
'field' => 'foreign_id, servers_id',
'message' => 'The brand is already present on the selected server.'
)));
But Phalcon says:
Column 'foreign_id, servers_id' isn't part of the table columns
Any ideas ?