This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The @Column annotation is not being mapped to the use class when using quotes. Auto complete works fine. Doctrine works fine. Netbeans says that 'use Doctrine\ORM\Mapping\Column;' is not used. (and removed it when 'remove unused uses' is used) To fix the 'not used message': Change: '@Column(type="string", length=255)' To: '@Column(type=string, length=255)' Netbeans works fine now, but Doctrine will throw 'Couldn't find constant string'. This is not desired. Temporary fix: /** @var Column */ Code to reproduce: (I used a plain Symfony3 project (latest build), with Doctrine enabled (latest build)) <?php namespace AppBundle\Entity; use Doctrine\ORM\Mapping\Table; use Doctrine\ORM\Mapping\Entity; use Doctrine\ORM\Mapping\Column; /** * @Table() * @Entity */ class TestEntity { /** * @Column(type="string", length=255) */ private $display; }
Should be fixed now, please verify. Thanks. http://hg.netbeans.org/web-main/rev/2b8e3d06969a
The fix resolved the issue on the web-main branche. Thanks!
Thanks for verification.
Integrated into 'main-silver', will be available in build *201606290002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/2b8e3d06969a User: Tomas Mysik <tmysik@netbeans.org> Log: #258783 - Annotation @Column is not being mapped to the use class when using quotes