|Using Code Help after loading class with Doctrine_Core::getClass [message #642134]
||Tue, 30 November 2010 03:14
Registered: November 2010
I'm starting with Doctrine and Eclipse. Suppose that I have a model called Product.php with a getLastPrice() method. After I have instanciated the Product class, is it possible to make the code help show the methods of the loaded class? I'm using a Bootstrap.php file to store the Doctrine configurations, and those configurations load automatically (at runtime) the model classes and the Doctrine classes.
I'm doing this:
// This file make auto load the models classes and the Doctrine classes
$Product = Doctrine_Core::getClass('Product');
After this, I would like to write "$Product->" and then the code help of Eclipse should show me the list of available methods (in the example above, the getLastPrice() method).
Anyone know if is it possible?
One more information: if I do:
$Product = new Product();
The code help work as expected.
Powered by FUDForum
. Page generated in 0.02585 seconds