First what your trying to do is invalid this
protected $_primary = 'array('id')';

will cause a syntax error.

second why would you want to have a default value for a property to be a
string that consists of an array? this will fail it you try to run it as if
it was an array.

What are you trying to do exactly?



On Sun, May 24, 2009 at 6:41 PM, iceangel89 <comet2...@gmail.com> wrote:

>
> i am trying to use Zend_CodeGenerator to generate my models from my MySQL
> db
> so far this is what i got ...
>
> class My_blogentries
> {
>    protected $_primary = 'array('id')';
> }
>
> as u can see i cant have a array for the property ... and how can i add
> "extends Zend_Db_Table Abstract" also?
> --
> View this message in context:
> http://www.nabble.com/Zend_CodeGenerator-arrays-as-property-tp23694912p23694912.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>


-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.
Zend Framework Certified Engineer.
-- http://www.vadimg.co.il/

Reply via email to