1
0
mirror of synced 2025-01-18 22:41:43 +03:00

[2.0] Added more verbosity when attempting to iterate through a fetch join.

This commit is contained in:
guilhermeblanco 2010-03-30 22:29:10 +00:00
parent 511bf2248e
commit 9ae7671b26

View File

@ -116,9 +116,11 @@ class QueryException extends \Doctrine\ORM\ORMException
); );
} }
// TODO: Add the $assoc to the error message
public static function iterateWithFetchJoinNotAllowed($assoc) { public static function iterateWithFetchJoinNotAllowed($assoc) {
return new self("Iterate with fetch join not allowed"); return new self(
"Iterate with fetch join in class " . $assoc->sourceEntityName .
" using association " . $assoc->sourceFieldName . " not allowed."
);
} }
public static function associationPathCompositeKeyNotSupported() public static function associationPathCompositeKeyNotSupported()