Uploaded image for project: 'Doctrine 2 - ORM'
  1. Doctrine 2 - ORM
  2. DDC-1025

Please repalce 'Doctrine\XXX\YYY' with '\Doctrine\XXX\YYY' in code and document

    Details

      Description

      It will help us use the namespace and code autocomplete in some IDE.

        Activity

        Show
        deeky666 Steve Müller added a comment - Fixed in commits: https://github.com/doctrine/doctrine2/commit/3b259dcb42e8ba332231846401d8d97296f3dd65 https://github.com/doctrine/doctrine2/commit/bda98150c4e876f0b1b89d757c864a70ad7c583a
        Hide
        beberlei Benjamin Eberlei added a comment -

        This issue is referenced in Github Pull-Request GH-216
        https://github.com/doctrine/doctrine2/pull/216

        Show
        beberlei Benjamin Eberlei added a comment - This issue is referenced in Github Pull-Request GH-216 https://github.com/doctrine/doctrine2/pull/216
        Hide
        beberlei Benjamin Eberlei added a comment -

        This issue is referenced in Github Pull-Request GH-215
        https://github.com/doctrine/doctrine2/pull/215

        Show
        beberlei Benjamin Eberlei added a comment - This issue is referenced in Github Pull-Request GH-215 https://github.com/doctrine/doctrine2/pull/215
        Hide
        andrewmackrodt Andrew Mackrodt added a comment -

        I've been evaluating PhpStorm and also came across this issue; I believe the problem is due to Doctrine rather than being a bug with the IDE although it would be nice if PhpStorm would assume namespaces are absolute if they're not resolved upon an initial lookup.

        I created a quick c# app to append the beginning forward slash to any @var or @return attributes within Doctrine's source. It's working for me with Doctrine 2.1.2 and PhpStorm (IntelliJ): http://pastebin.com/4HxiWvJA - hopefully this will be of use for anyone else using these IDEs;. Note: the application doesn't detect multiple line annotations although the only one I'm aware of is the getAST method in Doctrine\ORM\Query.php.

        Show
        andrewmackrodt Andrew Mackrodt added a comment - I've been evaluating PhpStorm and also came across this issue; I believe the problem is due to Doctrine rather than being a bug with the IDE although it would be nice if PhpStorm would assume namespaces are absolute if they're not resolved upon an initial lookup. I created a quick c# app to append the beginning forward slash to any @var or @return attributes within Doctrine's source. It's working for me with Doctrine 2.1.2 and PhpStorm (IntelliJ): http://pastebin.com/4HxiWvJA - hopefully this will be of use for anyone else using these IDEs;. Note: the application doesn't detect multiple line annotations although the only one I'm aware of is the getAST method in Doctrine\ORM\Query.php.
        Hide
        mridgway Michael Ridgway added a comment -

        The issue is that PHPStorm and NetBeans have different class resolution rules. I also use PHPStorm and most of Doctrine does not resolve auto-completion correctly because of this issue.

        I'd be willing to work on this if it would be accepted.

        Show
        mridgway Michael Ridgway added a comment - The issue is that PHPStorm and NetBeans have different class resolution rules. I also use PHPStorm and most of Doctrine does not resolve auto-completion correctly because of this issue. I'd be willing to work on this if it would be accepted.

          People

          • Assignee:
            beberlei Benjamin Eberlei
            Reporter:
            wsyb ben yan
          • Votes:
            7 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: