. */ namespace Doctrine\ORM; /** * EntityManagerException * * @author Konsta Vesterinen * @author Roman Borschel * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.doctrine-project.org * @since 2.0 * @version $Revision$ */ class EntityManagerException extends \Doctrine\Common\DoctrineException { public static function invalidFlushMode() { return new self("Invalid flush mode."); } public static function noEntityManagerAvailable() { return new self("No EntityManager available."); } public static function entityAlreadyBound($entityName) { return new self("The entity '$entityName' is already bound."); } public static function noManagerWithName($emName) { return new self("EntityManager named '$emName' not found."); } public static function unknownAttribute($name) { return new self("Unknown EntityManager attribute '$name'."); } }