Skip to content

Commit

Permalink
Deprecate Content->relations
Browse files Browse the repository at this point in the history
Causes issues for permissions, performance (an example of eager loading) and content cache.
  • Loading branch information
andrerom committed Nov 20, 2012
1 parent 7dbbf84 commit d765068
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions eZ/Publish/API/Repository/Values/Content/Content.php
Expand Up @@ -19,7 +19,7 @@
* @property-read mixed $id convenience getter for retrieving the contentId: $versionInfo->contentInfo->id
* @property-read \eZ\Publish\API\Repository\Values\Content\VersionInfo $versionInfo calls getVersionInfo()
* @property-read array $fields access fields, calls getFields()
* @property-read array $relations calls getRelations()
* @property-read array $relations calls getRelations() ( @deprecated Use dedicated API to load relations instead )
*/
abstract class Content extends ValueObject
{
Expand All @@ -45,7 +45,9 @@ abstract public function getVersionInfo();
abstract public function getFieldValue( $fieldDefIdentifier, $languageCode = null );

/**
* returns the outgoing relations
* Returns the outgoing relations
*
* @deprecated Use dedicated API to load relations instead
*
* @return \eZ\Publish\API\Repository\Values\Content\Relation[] An array of {@link Relation}
*/
Expand Down

0 comments on commit d765068

Please sign in to comment.