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.

Bug 258783 - Annotation @Column is not being mapped to the use class when using quotes
Summary: Annotation @Column is not being mapped to the use class when using quotes
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Doctrine (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-12 08:46 UTC by dicexq
Modified: 2016-06-29 01:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dicexq 2016-04-12 08:46:25 UTC
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;

}
Comment 1 Tomas Mysik 2016-06-28 13:25:07 UTC
Should be fixed now, please verify. Thanks.

http://hg.netbeans.org/web-main/rev/2b8e3d06969a
Comment 2 dicexq 2016-06-28 17:37:48 UTC
The fix resolved the issue on the web-main branche.

Thanks!
Comment 3 Tomas Mysik 2016-06-28 17:44:23 UTC
Thanks for verification.
Comment 4 Quality Engineering 2016-06-29 01:46:56 UTC
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