tingobol / gii-template-collection

Automatically exported from code.google.com/p/gii-template-collection
0 stars 0 forks source link

Add @property phpdoc do model base class #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
On the example provided on issue 4, there are some properties declared
this way. This phpdoc is valuable because these fields are model (table)
fields and much used, but they are accessed via magic methods, thus
not showing in IDE's autocomplete.

The result model base class should be like this:

/**
 * @property integer $id
 * @property string $name
 * @property string $password
*/
abstract class BaseUser extends ...

Original issue reported on code.google.com by rodrigo.coelho@gmail.com on 2 Sep 2010 at 7:56

GoogleCodeExporter commented 9 years ago
Attached a patch.

I just copied the code from the framework (gii model generator template)
and made minor adjustments.

Original comment by rodrigo.coelho@gmail.com on 2 Sep 2010 at 1:15

Attachments:

GoogleCodeExporter commented 9 years ago
Please apply this patch after applying the one for issue 6 to avoid a conflict.

Original comment by rodrigo.coelho@gmail.com on 2 Sep 2010 at 1:29

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r99.

Original comment by rodrigo.coelho@gmail.com on 8 Sep 2010 at 9:37