Doctrine MongoDB ODM
  1. Doctrine MongoDB ODM
  2. MODM-149

Fix PHPDoc @return types in various places

    Details

    • Type: Documentation Documentation
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 1.0.0BETA3
    • Fix Version/s: None
    • Component/s: Document Manager
    • Labels:
      None

      Description

      In certain PHPDoc blocks for functions, the @return type is not of the right type. This causes auto-completion issues in various IDEs (I'm using PhpStorm).

      For example, in \Doctrine\ODM\MongoDB\DocumentManager on line #341 the ->createQueryBuilder($documentName = null) function.

      /**

      • Create a new Query instance for a class.
        *
      • @param string $documentName The document class name.
      • @return Document\ODM\MongoDB\Query <--------------------------- MUST BE Query\Builder !
        */
        public function createQueryBuilder($documentName = null) { return new Query\Builder($this, $this->cmd, $documentName); }

        Activity

        Dayson Pais created issue -

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Dayson Pais
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: