public function defineRelations() { return array('field' => array(static::BELONGS_TO, 'FieldRecord', 'onDelete' => static::CASCADE), 'fieldLayout' => array(static::BELONGS_TO, 'FieldLayoutRecord', 'onDelete' => static::CASCADE)); }