PHP Class Doctrine\OXM\OptimisticLockException

Author: Dmitry Petrov ([email protected])
Inheritance: extends OXMException
Show file Open project: doctrine/oxm Class Usage Examples

Public Methods

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

Method Details

__construct() public method

public __construct ( $msg, $entity )

getEntity() public method

Gets the entity that caused the exception.
public getEntity ( ) : object
return object

lockFailed() public static method

public static lockFailed ( $entity )

lockFailedVersionMissmatch() public static method

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

notVersioned() public static method

public static notVersioned ( $entityName )