1
0
mirror of synced 2025-02-21 22:53:15 +03:00

Merge branch 'hotfix/#1019-detached-entity-exception-rewording'

Close #1019
This commit is contained in:
Marco Pivetta 2014-07-14 11:25:42 +02:00
commit 85fbf68436

View File

@ -65,7 +65,7 @@ class ORMInvalidArgumentException extends \InvalidArgumentException
static public function entityWithoutIdentity($className, $entity) static public function entityWithoutIdentity($className, $entity)
{ {
return new self( return new self(
"The given entity of type '" . $className . "' (".self::objToStr($entity).") has no identity/no " . "The given entity of type '" . $className . "' (".self::objToStr($entity).") has no identity/no " .
"id values set. It cannot be added to the identity map." "id values set. It cannot be added to the identity map."
); );
} }
@ -154,7 +154,7 @@ class ORMInvalidArgumentException extends \InvalidArgumentException
*/ */
static public function detachedEntityCannot($entity, $operation) static public function detachedEntityCannot($entity, $operation)
{ {
return new self("A detached entity was found during " . $operation . " " . self::objToStr($entity)); return new self("Detached entity " . self::objToStr($entity) . " cannot be " . $operation);
} }
/** /**