Skip to content

Commit

Permalink
EZP-24268: throw BadStateException when deleting Content's last version
Browse files Browse the repository at this point in the history
  • Loading branch information
pspanja committed Apr 27, 2015
1 parent 41bd3f1 commit ef35714
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Repository/ContentService.php
Expand Up @@ -281,9 +281,10 @@ public function updateContent( VersionInfo $versionInfo, ContentUpdateStruct $co
public function publishVersion( VersionInfo $versionInfo );

/**
* removes the given version
* Removes the given version
*
* @throws \eZ\Publish\API\Repository\Exceptions\BadStateException if the version is in state published
* @throws \eZ\Publish\API\Repository\Exceptions\BadStateException if the version is in
* published state or is a last version of the Content
* @throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException if the user is not allowed to remove this version
*
* @param \eZ\Publish\API\Repository\Values\Content\VersionInfo $versionInfo
Expand Down

0 comments on commit ef35714

Please sign in to comment.