« Return to Thread: Zend_CodeGenerator_Php_Property & Array

Zend_CodeGenerator_Php_Property & Array

by CocoRambo :: Rate this Message:

Reply to Author | View in Thread

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