Code Duplication    Length = 7-7 lines in 2 locations

lib/Doctrine/ORM/Query/QueryException.php 2 locations

@@ 174-180 (lines=7) @@
171
     *
172
     * @return QueryException
173
     */
174
    public static function iterateWithFetchJoinCollectionNotAllowed($assoc)
175
    {
176
        return new self(
177
            "Invalid query operation: Not allowed to iterate over fetch join collections ".
178
            "in class ".$assoc['sourceEntity']." association ".$assoc['fieldName']
179
        );
180
    }
181
182
    /**
183
     * @return QueryException
@@ 226-232 (lines=7) @@
223
     *
224
     * @return QueryException
225
     */
226
    public static function iterateWithFetchJoinNotAllowed($assoc)
227
    {
228
        return new self(
229
            "Iterate with fetch join in class " . $assoc['sourceEntity'] .
230
            " using association " . $assoc['fieldName'] . " not allowed."
231
        );
232
    }
233
234
    /**
235
     * @return QueryException