« Return to Thread: Zend_CodeGenerator_Php_Property & Array

Re: Zend_CodeGenerator_Php_Property & Array

by Ralph Schindler-2 :: Rate this Message:

Reply to Author | View in Thread

ah, you are correct, can you log an issue in the isssue tracker and
assign to me?

Effectively, we need to add type support to the php class properties,
should be easy to accomplish.  Right now its assuming everything is a
string.

I should be able to tackle this soon.

-ralph

CocoRambo wrote:

> Hi all,
>
> I recently try to use Zend_CodeGenerator to generate all my DbTables
> automatically.
> All it's OK except for one thing!
>
> I have multiple key for a primary key and I can't define a
> Zend_CodeGenerator_Php_Property which is an array?!
>
> What I want:
> protected $_myProperty = array('val1', 'val2');
>
> What I have:
> protected $_myProperty = 'array('val1', 'val2')';
>
> There is a solution ?
>
> Thanks

 « Return to Thread: Zend_CodeGenerator_Php_Property & Array