Doctrine2 support added

Hi  all, today we would like to inform all the Doctrine2 PHP ORM framework users that their favorite framework is now supported in NetBeans.

First, as always, be sure that NetBeans knows about your Doctrine2 installation:

Docrtine2 IDE Options

If you have installed Doctrine2 via PEAR, the Doctrine2 script will be detected automatically.

Next, you need to tell NetBeans that your existing PHP project uses Doctrine2 - open Project Properties dialog and enable its support.

Enable support for Docrine2

Now, you will be able to run Doctrine2 commands right from the IDE. Please notice that the project now has a Doctrine2 badge icon.

Run Doctrine2 Command

All the possible Doctrine2 commands will appear.

Doctrine2 Commands

They can be run the same way as for the other supported frameworks. It means also that the output of the invoked command will be available in the Output window.

That's all for today, as always, please test it and report all the issues or enhancements you find in NetBeans BugZilla (component php, subcomponent Doctrine).


Comments:

So what about Doctrine 2 annotations?

Posted by guest on January 30, 2012 at 03:41 PM CET #

@guest: We have it in our development plan for NB 7.2 but we cannot promise anything since the time as well as resources are limited.

Posted by Tomas Mysik on January 30, 2012 at 04:10 PM CET #

Excellent!!!! Netbeans is the best IDE.

Posted by guest on January 30, 2012 at 05:44 PM CET #

Hi,
Will not be a support for Yii framework ?

Posted by Nasreddine on January 31, 2012 at 08:41 AM CET #

@Nasreddine: There is a plugin for Yii framework developed by our community [1] (sorry, no idea how usable it is or what it does exactly and what needs to be done yet). Anyone who wants to help with it is more than welcomed, of course.

[1] http://hg.netbeans.org/main/contrib/file/tip/php.yii

Posted by Tomas Mysik on January 31, 2012 at 10:31 AM CET #

Thanks Tomas Mysik , I'll take a look.

Posted by Nasreddine on January 31, 2012 at 11:09 AM CET #

I wish there was a way to somehow get the class info for typehinting when you use $article = $this->entityManager->getRepository('\Entities\Article')->find($id); ... would make Doctrine support even better.

Posted by pajousek on January 31, 2012 at 01:02 PM CET #

Glade to read it.
Now it's interesting to work with Doctrine2 PHP ORM framework...

Posted by PHP Expert on January 31, 2012 at 01:14 PM CET #

@pajousek: There is a way, see [1] and [2].

[1] http://blogs.oracle.com/netbeansphp/entry/defining_variable_type_in_a
[2] http://blogs.oracle.com/netbeansphp/entry/defining_a_variable_type_in

Posted by Tomas Mysik on January 31, 2012 at 01:24 PM CET #

Amazing! Netbeans is the best IDE

Posted by myth on February 02, 2012 at 05:15 AM CET #

Nice! Thanks for all these new features! As previously said, having Doctrine 2 annotations would be great in future versions - even if not in 7.2 ... I'll wait :) !

Posted by nicholasf on February 02, 2012 at 10:21 AM CET #

@nicholasf: Thanks! BTW the annotations will be very likely in NB 7.2... ;)

Posted by Tomas Mysik on February 02, 2012 at 10:23 AM CET #

How does one get the Doctrine 2 tag on the PHP options as shown in the screen dump?

Stephan

Posted by guest on February 06, 2012 at 09:51 PM CET #

@Stephan: One must use the development version of NetBeans (the download link is in the blog post).

Posted by Tomas Mysik on February 07, 2012 at 10:17 AM CET #

Great news! But how may I got the doctrine2 tab in the Netbeans's options? I'm using Netbeans 7.1 on Ubuntu 10.04.

Posted by Frederick on February 11, 2012 at 12:22 AM CET #

@Frederick: Hi, as I already wrote in my last comment, one must use the development version of NetBeans [1].

[1] http://bits.netbeans.org/download/trunk/nightly/latest/

Posted by Tomas Mysik on February 13, 2012 at 08:49 AM CET #

What about using doctrine 2 with Zend Framework or Yii Framework.

Posted by Zend Framework on March 22, 2012 at 01:30 PM CET #

@Zend Framework: Sorry, not sure what you mean exactly since Doctrine2 support is independent and can be added to any PHP project.

Posted by Tomas Mysik on March 22, 2012 at 01:36 PM CET #

@ Tomas Mysik on January 31, 2012
I know about that. It's a bit tedious to have to add that manually all the time though. It would be great if typehinting would be automatic based on such codelines.

NetBeans has some more annoyances though. And I soon hope to find time to look into creating addons for NetBeans myself. Maybe I can find an improvement for this myself too.

Posted by Alex Haan on June 13, 2012 at 11:59 AM CEST #

I have NetBeans 7.1.2 and there is no Doctrine 2 tab under Options>PHP

Doctrine 2 has been installed via Pear

What give?

Joe Radtke

Posted by guest on June 24, 2012 at 08:45 PM CEST #

I have NetBeans 7.1.2 and there is no Doctrine 2 tab under Options>PHP

Doctrine 2 has been installed via Pear

What give?

Joe Radtke

Posted by guest on June 25, 2012 at 02:26 AM CEST #

@Joe Radtke: Doctrine2 framework support is available as part of NetBeans 7.2 (Beta is available).

Thanks.

Posted by Tomas Mysik on June 25, 2012 at 10:27 AM CEST #

I want doctrine run command support in the Zend Framework run command.

Like this Vidio http://www.youtube.com/watch?v=3xjfbtQtDRE

How can i do?
Please help me.
It's very urgent.
Thanks in advance.

Posted by guest on February 06, 2013 at 11:06 AM CET #

To guest: Simply enable Doctrine2 support in Project Properties dialog.

Posted by Tomas Mysik on February 06, 2013 at 11:28 AM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
About

This blogs is written by NetBeans developers who contribute to the PHP support mainly.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today