. */ namespace Doctrine\ORM; /** * Is thrown when a transaction is required for the current operation, but there is none open. * * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.doctrine-project.com * @since 1.0 * @author Benjamin Eberlei * @author Roman Borschel */ class TransactionRequiredException extends ORMException { static public function transactionRequired() { return new self('An open transaction is required for this operation.'); } }