Created
November 28, 2011 11:29
-
-
Save yjeroen/1400069 to your computer and use it in GitHub Desktop.
composite PK like uniqueness
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
array('field1', 'unique', 'criteria'=>array( | |
'condition'=>'field2=:field2', | |
'params'=>array(':field2'=>$this->field2), | |
)), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment