PHP Class Doctrine\ODM\CouchDB\OptimisticLockException

Since: 2.0
Author: Benjamin Eberlei ([email protected])
Inheritance: extends CouchDBException
Mostrar archivo Open project: doctrine/couchdb-odm Class Usage Examples

Public Methods

Method Description
__construct ( $msg, $document )
getDocument ( ) : object Gets the document that caused the exception.
lockFailed ( $document )
lockFailedVersionMissmatch ( $document, $expectedLockVersion, $actualLockVersion )
notVersioned ( $entityName )

Method Details

__construct() public method

public __construct ( $msg, $document )

getDocument() public method

Gets the document that caused the exception.
public getDocument ( ) : object
return object

lockFailed() public static method

public static lockFailed ( $document )

lockFailedVersionMissmatch() public static method

public static lockFailedVersionMissmatch ( $document, $expectedLockVersion, $actualLockVersion )

notVersioned() public static method

public static notVersioned ( $entityName )