Doctrine\ORM\ORMInvalidArgumentException
Contains exception messages for all invalid lifecycle state exceptions inside UnitOfWork
- Author: Benjamin Eberlei <kontakt@beberlei.de>
Synopsis
class ORMInvalidArgumentException
extends InvalidArgumentException
{
- // Inherited members from InvalidArgumentException
- protected $message;
- protected $code;
- protected $file;
- protected $line;
- // Inherited members from LogicException
- protected $message;
- protected $code;
- protected $file;
- protected $line;
- // Inherited members from Exception
- protected $message;
- protected $code;
- protected $file;
- protected $line;
- // methods
- public static void scheduleInsertForManagedEntity()
- public static void scheduleInsertForRemovedEntity()
- public static void scheduleInsertTwice()
- public static void entityWithoutIdentity()
- public static void readOnlyRequiresManagedEntity()
- public static void newEntityFoundThroughRelationship()
- public static void detachedEntityFoundThroughRelationship()
- public static void entityNotManaged()
- public static void entityHasNoIdentity()
- public static void entityIsRemoved()
- public static void detachedEntityCannot()
- public static void invalidObject()
- private static string objToStr()
- // Inherited methods from InvalidArgumentException
- public final string getMessage()
- public final Exception getPrevious()
- public final mixed getCode()
- public final string getFile()
- public final int getLine()
- public final array getTrace()
- public final string getTraceAsString()
- public string __toString()
- // Inherited methods from LogicException
- public final string getMessage()
- public final Exception getPrevious()
- public final mixed getCode()
- public final string getFile()
- public final int getLine()
- public final array getTrace()
- public final string getTraceAsString()
- public string __toString()
- // Inherited methods from Exception
- public void __construct()
- public final string getMessage()
- public final Exception getPrevious()
- public final mixed getCode()
- public final string getFile()
- public final int getLine()
- public final array getTrace()
- public final string getTraceAsString()
- public string __toString()
Hierarchy
Extends
Members
protected
- $code
—
int
The exception code - $code
—
int
The exception code - $code
—
int
The exception code - $file
—
string
The filename where the exception was created - $file
—
string
The filename where the exception was created - $file
—
string
The filename where the exception was created - $line
—
int
The line where the exception was created - $line
—
int
The line where the exception was created - $line
—
int
The line where the exception was created - $message
—
string
The exception message - $message
—
string
The exception message - $message
—
string
The exception message
Methods
private
- objToStr() — Helper method to show an object as string.
public
- detachedEntityCannot()
- detachedEntityFoundThroughRelationship()
- entityHasNoIdentity()
- entityIsRemoved()
- entityNotManaged()
- entityWithoutIdentity()
- invalidObject()
- newEntityFoundThroughRelationship()
- readOnlyRequiresManagedEntity()
- scheduleInsertForManagedEntity()
- scheduleInsertForRemovedEntity()
- scheduleInsertTwice()
Inherited from InvalidArgumentException
public
Inherited from LogicException
public
Inherited from Exception
public
- __toString() — String representation of the exception
- getCode() — Gets the Exception code
- getFile() — Gets the file in which the exception occurred
- getLine() — Gets the line in which the exception occurred
- getMessage() — Gets the Exception message
- getPrevious() — Returns previous Exception
- getTrace() — Gets the stack trace
- getTraceAsString() — Gets the stack trace as a string