private function _addError($relationModel, $owner, $relationName, $prettyRelationName)
    {
        foreach ($relationModel->errors as $attribute => $attributeErrors) {
            foreach ($attributeErrors as $error) {
                $owner->addError($relationName, "{$prettyRelationName}: {$error}");
            }
        }
    }
private function _addError($relationModel, $owner, $relationName, $prettyRelationName)
    {
        foreach ($relationModel->errors as $attribute => $attributeErrors) {
            foreach ($attributeErrors as $error) {
                $owner->addError($relationName, "{$prettyRelationName}: {$error}");
            }
        }
    }
private function _addError ( $ relationModel , $ owner , $ relationName , $ prettyRelationName ) { foreach ( $ relationModel -> errors as $ attribute => $ attributeErrors ) { foreach ( $ attributeErrors as $ error ) { $ owner -> addError ( $ relationName , "{$prettyRelationName}: {$error}" ) ; } } }
Attach errors to owner relational attributes
@param BaseActiveRecord $relationModel
@param BaseActiveRecord $owner
@param string $relationName
@param string $prettyRelationName
Attach errors to owner relational attributes