Answer the question
In order to leave comments, you need to log in
Why didn't AggregateHydrator stop working when migrating zf2->zf3?
Hello!
I can’t understand why the AggregateHydrator stopped working if it was received in the mapper factory using the factory.
$aggregatehydrator = $container->get(AggregateHydrator::class);
\Zend\Debug\Debug::dump($aggregatehydrator);
$tagsHydrator = $container->get(TagsHydrator::class);
$categoryHydrator = $container->get(CategoryHydrator::class);
$postHydrator = $container->get(PostHydrator::class);
$datesHydrator = $container->get(DatesHydrator::class);
$aggregatehydrator = new \Zend\Hydrator\Aggregate\AggregateHydrator();
$aggregatehydrator->add($postHydrator);
$aggregatehydrator->add($categoryHydrator);
$aggregatehydrator->add($tagsHydrator);
$aggregatehydrator->add($datesHydrator);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question