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 215107 - use statements are reported as unused when used in doctrine annotations
Summary: use statements are reported as unused when used in doctrine annotations
Status: RESOLVED DUPLICATE of bug 212932
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-03 06:47 UTC by gameshas
Modified: 2012-07-03 06:50 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 gameshas 2012-07-03 06:47:08 UTC
Using netbeans 7.2 RC1,

netbeans reports unused use statements, but if statements are aliased and used in doctrine annotations they are still highlighted yellow as unused.

ex.:

use Doctrine\ORM\Mapping as ORM;

/**
	 *
	 * @var \SCMS\Entity\AdminRole
	 * @ORM\ManyToOne(targetEntity="AdminRole", inversedBy="admins", cascade={"persist"}, fetch="EAGER")
	 * @ORM\JoinColumn(name="role_id", referencedColumnName="id", onDelete="RESTRICT")
	 */
	protected $role;

here ORM is used as @ORM\ManyToOne, but reported as unsed use statement at the top of class file.
Comment 1 Ondrej Brejla 2012-07-03 06:50:08 UTC

*** This bug has been marked as a duplicate of bug 212932 ***