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 214858 - During refactor of Class names, doctrine relationships are not updated
Summary: During refactor of Class names, doctrine relationships are not updated
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-27 10:05 UTC by nover
Modified: 2012-06-27 11:07 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nover 2012-06-27 10:05:14 UTC
In the doctrine entity classes you define relationships like "@ManyToMany(targetEntity="FooClass")".

When I refactor FooClass to BooClass that attribute is not updated, thus leading to class load errors.
Comment 1 Ondrej Brejla 2012-06-27 10:32:55 UTC
It's an enhancement...this never worked and never would. Will try to consider it for next release, but not sure if it's possible in the current implementation of annotations.
Comment 2 nover 2012-06-27 10:59:55 UTC
I see, I just assumed "Doctrine2 support" meant supporting stuff like that :)
Comment 3 Ondrej Brejla 2012-06-27 11:01:21 UTC
Unfortunately not :( It's not so simple as it looks like.
Comment 4 nover 2012-06-27 11:07:00 UTC
I can only imagine. Refactoring support in loosely typed languages have always been hard.

Anyway, I'm hoping that the feature will make it into netbeans at some point, and keep up the good work :)