You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?php
declare(strict_types=1);
namespace App\Work\Profile\ElasticSearch;
use App\Work\Profile\ElasticSearch\DTO\ProfileEs;
use App\Work\Profile\Entity\Profile\Profile;
use AutoMapper\AutoMapperInterface;
final class ProfileToEsDtoTransformer
{
public function __construct(private AutoMapperInterface $autoMapper)
{
}
public function toDto(Profile $profile): ProfileEs
{
$target = $this->autoMapper->map($profile, ProfileEs::class);
return $target;
}
}
Result
On the result of mapper, i can see that property profileSkills it was well mapped but the other property like firstName or phone or email is not weel mapped. Their values are zero in the result.
I try to implement this solution for pushing data on Elastic Search.
Thank You for your future response.
The text was updated successfully, but these errors were encountered:
Hello,
I has a problem with Auto Mappers. I try to map my Entity to a Dto.
My context
Debuger
Auto Mapper Config
My DTO
My Entity
My Service
Result
On the result of mapper, i can see that property profileSkills it was well mapped but the other property like firstName or phone or email is not weel mapped. Their values are zero in the result.
I try to implement this solution for pushing data on Elastic Search.
Thank You for your future response.
The text was updated successfully, but these errors were encountered: