Hi,

I just cant get hydration of a one-to-many collection to work.
I followed the doc at
https://github.com/doctrine/DoctrineModule/blob/master/docs/hydrator.md

I don't know what is wrong, and why the ServiceManager is involved.
As soon as i remove the Collection from Event Fieldset, the rest of the
code is working.

Any help would be much appreciated.

TIA
Ludwig aka Rufinus

Full code of the form is on https://gist.github.com/rufinus/5579117

Versions used (updated daily):
ZF2: master @ 23bb49413fa9d3088fe8653a618d48511a91ae0e
DoctrineModule: master @ e2cc25dd7da98b940eb11ab2cd4312dc113db791
DoctrineORMModule: master @ f1e2feff0c4bdf375edaa45fc55e1948aedcc9ac
ORM: master @ eb1a162cbc003186c346f7c0b8b58093380c2fe9

The error im getting is:

PHP Warning:  Illegal offset type in isset or empty in
[PATH]/Zend/ServiceManager/ServiceManager.php on line 669
PHP Warning:  Illegal offset type in isset or empty in
[PATH]/Zend/ServiceManager/ServiceManager.php on line 822
PHP Warning:  strtr() expects parameter 1 to be string, object given in
[PATH]/Zend/ServiceManager/ServiceManager.php on line 827
PHP Warning:  Illegal offset type in
[PATH]/Zend/ServiceManager/ServiceManager.php on line 827
PHP Warning:  class_exists() expects parameter 1 to be string, object
given in [PATH]/Zend/ServiceManager/AbstractPluginManager.php on line 98
PHP Warning:  Illegal offset type in isset or empty in
[PATH]/Zend/ServiceManager/ServiceManager.php on line 443
PHP Warning:  Illegal offset type in isset or empty in
[PATH]/Zend/ServiceManager/ServiceManager.php on line 822
PHP Warning:  strtr() expects parameter 1 to be string, object given in
[PATH]/Zend/ServiceManager/ServiceManager.php on line 827
PHP Warning:  Illegal offset type in
[PATH]/Zend/ServiceManager/ServiceManager.php on line 827
PHP Warning:  Illegal offset type in isset or empty in
[PATH]/Zend/ServiceManager/ServiceManager.php on line 822
PHP Warning:  strtr() expects parameter 1 to be string, object given in
[PATH]/Zend/ServiceManager/ServiceManager.php on line 827
PHP Warning:  Illegal offset type in
[PATH]/Zend/ServiceManager/ServiceManager.php on line 827
PHP Catchable fatal error:  Object of class
Application\Form\Fieldset\Milestone could not be converted to string in
[PATH]/Zend/ServiceManager/ServiceManager.php on line 500


-- 
Ludwig Ruderstaller
http://www.cwd.at

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to