zf-fr / zfr-rest

A module for Zend Framework 2 that aims to simplify RESTful

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Render embeddable

bakura10 opened this issue · comments

Hi,

I've found an edge case of the renderer. I'm starting using the embeddable feature of Doctrine 2.5. The problem is that it's not considered as Doctrine associations, and is not taken into account by the renderer (and doing so would tie the code to Doctrine ORM, which I don't want).

Currently, I'm using a strategy for this field. I think that hydrators should be able to have nested hydrators, something like that:

$hydrator->addHydrator('myEmbeddable', new ClassMethods());

#184 no longer needs that and support embeddable natively.