Свойство | Тип | Описание | |
---|---|---|---|
$foreignKey | Foreign key if not standard tablename_id | ||
$model | Name of the model to be checked against |
Метод | Описание | |
---|---|---|
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 | ||
Результат | CActiveRecord | null |