Property | Type | Description | |
---|---|---|---|
$foreignKey | Foreign key if not standard tablename_id | ||
$model | Name of the model to be checked against |
Method | Description | |
---|---|---|
validateAttribute ( CModel $object, string $attribute ) | Validates a single attribute. | |
validateContainedInModel ( $value ) : CActiveRecord | null | Checks against the provided model to see if any foreign keys wit the current PK are found. |
protected validateAttribute ( CModel $object, string $attribute ) | ||
$object | CModel | the data object being validated |
$attribute | string | the name of the attribute to be validated. |
protected validateContainedInModel ( $value ) : CActiveRecord | null | ||
$value | ||
return | CActiveRecord | null |