automapper-plus
automapper-plus copied to clipboard
An AutoMapper for PHP
Hi, I'd like to know why this overwriten function: ``` protected function setDestinationValue( $destination, string $propertyName, $value ): void { $this->propertyWriter->setProperty( $destination, $propertyName, $value ); } ``` In MapFrom.php doesn't...
Allow context as third argument CustomMapper->mapToObject($source, $destination, array $context = []). As result it works for mapToObject(), but not for map(). Propose: line https://github.com/mark-gerarts/automapper-plus/blob/master/src/AutoMapper.php#L92 ``` return $this->getCustomMapper($mapping)->map($source, $destinationClass); ``` replace...
Hey there, I was wondering if there was an easy way to map to a destination object where all the properties are in a single associative array? For example ```...
Hi ! When we use Doctrine wich returns proxies, the mapper could not map : it maps property to null. Is there a solution ? example dump doctrine result :...
Is there any easy way to map polymorph property? The polymorph property can be class A or B or C. Both classes extends the same abstract classes. Unfortunately I can...
Hi, I was working recently with this package which I really like and kept struggling in situation where I need to define just one property of mapped class. I'm using...
This is a `fromMethod` part of issue https://github.com/mark-gerarts/automapper-plus/issues/64
CI was originally set up using Travis but should be migrated to Github actions. This has already been done for [the Symfony bundle](https://github.com/mark-gerarts/automapper-plus-bundle/pull/24) (thank you @malteschlueter!), we can possibly use...
This is a rewrite of #46 will what I think is a real middleware pattern now.
Hi, I was taking a look at the issues, but haven't found any similar, is there a way to map a string into a DateTime/DateTimeImmutable by default? I mean, I...