Commit 9ae7671b authored by guilhermeblanco's avatar guilhermeblanco

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

parent 511bf224
......@@ -116,9 +116,11 @@ class QueryException extends \Doctrine\ORM\ORMException
);
}
// TODO: Add the $assoc to the error message
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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment