public static function invalidFindByCall($entityName, $fieldName, $method) { return new self("Entity '" . $entityName . "' has no field '" . $fieldName . "'. " . "You can therefore not call '" . $method . "' on the entities' repository"); }