Closed driehle closed 2 years ago
@TomHAnderson @greg0ire Any chance on pushing this forward?
Thanks for the bump, @driehle
Is there any documentation for this new feature that should be added to the README?
@TomHAnderson I have added an example to the Readme file, is that sufficient?
@TomHAnderson push
@TomHAnderson @greg0ire Could someone please have a look at this to get this merged?
@greg0ire Could you please review again the changes?
@TomHAnderson @greg0ire Can we proceed with having this merged?
This is a new feature and as such should target 2.2.x
@greg0ire absolutely, yes, but there is no such branch yet, hence, I can't set the target accordingly.
Oh :sweat_smile:
Let me create it for you :)
Dang, I don't have the required permissions. Let me ask around.
2.2.x has been created
@TomHAnderson Thanks for creating the branch. Can you merge this now or is there anything else required?
Summary: Added support for Doctrine Embedabbles
BC Breaks: None
Note: This is related to #18. However, in contrast to #18, this does neither directly extract fields from embeddables nor hydrate them. Instead, this extracts or hydrates the object from the embeddable. In consequence, this deals with embedabbles in a similar way as with a toOne relationship and requires a separat hydrator for the inner fields of the embeddable.
Using Laminas\Form this allows to create a corresponding fieldset to each embeddable and, hence, enables re-using these fieldsets accros all entities that utilize the same embeddable. See the following example of an
AddressFieldset
, which can be adopted in other fieldsets or forms:Maybe this should be stated in the documentation somewhere?