ObjectHydrator icon indicating copy to clipboard operation
ObjectHydrator copied to clipboard

Object Hydration library to create Command and Query objects.

Results 20 ObjectHydrator issues
Sort by recently updated
recently updated
newest added

The `PayloadSerializerSupportingObjectMapperAndSerializablePayload` only looks at the root type to determine the strategy it should use. Because public methods are serialized by default by the reflection strategy `toPayload` is getting serialized,...

In my project I'm using the ObjectHydrator in order to parse api calls to commands and queries. One caster that would really improve DX would be a "AuthenticatedUser" caster, providing...

I am using this library to serialize value objects provided by `commerceguys/addressing`, that is, a library I do not maintain in-tree. One of the properties of the object I am...

The current definition has a variable named "hydrator": ```php interface PropertyCaster { public function cast(mixed $value, ObjectMapper $hydrator): mixed; } ``` It used to be that `ObjectMapper` was called `ObjectHydrator`,...

Hi Frank - love the package. In working on a PR, it was difficult to determine what the current release was, since it doesn't appear they've been made "releases" in...

I have a problem, when i want exclude sertain fields from serialization. I can provide use case, that helps understand the problem: we have 3-rd party REST API, with PATCH...

This fixes a very minor pet peeve I have with these two classes; - The caster repository's casters cannot be passed to its constructor - The serializer repository's serializers parameter...

I've got a model, that uses several VO properties, using a ValueObjectInterface. Trying to create a generic PropertyCaster, CastToValueObjectInterface, I miss the concrete Attribute target (the property on whom is...

I'm getting the following error: ``` Fatal error: Uncaught AssertionError: assert(in_array($token[0], [T_NAME_FULLY_QUALIFIED, T_NAME_QUALIFIED, T_STRING])) in /Users/x/sites/x/vendor/eventsauce/object-hydrator/src/NaivePropertyTypeResolver.php:89 ``` To reproduce: ```php

> This is a breaking change, since the interface of the caster changes. So probably need to be queued for a major release. In my casters I sometimes need the...