src/Mapper/ResourceMapperRegistry.php
public function toEntityFull(ResourceInterface $resource, EntityInterface $entity)
    {
        foreach ($this->mappers as $mapper) {
            if ($mapper->supportsEntity($entity)) {
                $this->configureResourceMapper($mapper);
                $mapper->toEntityFull($resource, $entity);

                return;
            }
        }

        throw new UnsupportedTypeException($resource->type());
    }
public function toEntityFull(ResourceInterface $resource, EntityInterface $entity)
    {
        foreach ($this->mappers as $mapper) {
            if ($mapper->supportsEntity($entity)) {
                $this->configureResourceMapper($mapper);
                $mapper->toEntityFull($resource, $entity);

                return;
            }
        }

        throw new UnsupportedTypeException($resource->type());
    }
public function toEntityFull ( ResourceInterface $ resource , EntityInterface $ entity ) { foreach ( $ this -> mappers as $ mapper ) { if ( $ mapper -> supportsEntity ( $ entity ) ) { $ this -> configureResourceMapper ( $ mapper ) ; $ mapper -> toEntityFull ( $ resource , $ entity ) ; return ; } } throw new UnsupportedTypeException ( $ resource -> type ( ) ) ; }
Maps all fields of the given api resource from post request to the given entity and throws an exception if required elements are missing

@param ResourceInterface $resource
@param EntityInterface $entity

@return void
@throws JsonApiException
Maps all fields of the given api resource from post request to the given entity and throws an exception if required elements are missing