Hi,
I would like to request for a feature.
It is that, if I have loaded/instantiated a db table object, I can get a list of the properties/columns of the object.
I know it is mainly dealt with the IDE itself. I'm using Aptana Studio 3 and Zend Studio.
I think I can express myself more clearly with an example.
Let's say I have run codegen and got a class from table Staff, the table has only three columns: StaffID, StaffName and Dept.
1) so, if I instantiate it directly:
$obj = new Staff();
Then I can successfully list out the methods/properties of the class when I type the “greater than” char of $obj->.
However, the list won't include the three columns. I've tested it on Aptana and ZDE.
I've looked at the generated code, and I found out that the three columns are included in the gen class, but are “protected”. But I can see that they are defined as properties in the comment directive of the class.
Is it possible to make it public, or any thing that makes the columns appear in the intellisense list?
2) Another thing is that, if I have to load it using a key value:
$obj = Staff::LoadByKey(1);
Since the object is not directly instantiated, both the two IDEs cannot infer the type of $obj (I guess it's because the type info depends dynamically on the method's return type) and therefore it failed to produce the property list.
Is there a method that functions similar with the static method Loadbykey, but is an instance method instead?
Please help on the two issues... Coz they are preventing me to make good use of Qcodo.
Thanks!