Nextras\Orm\Mapper\Dbal\StorageReflection\StorageReflection::setMapping PHP Метод

setMapping() публичный Метод

Sets mapping.
public setMapping ( string $entity, string $storage, callable $toEntityCb = null, callable $toStorageCb = null ) : StorageReflection
$entity string
$storage string
$toEntityCb callable
$toStorageCb callable
Результат StorageReflection
    public function setMapping($entity, $storage, callable $toEntityCb = null, callable $toStorageCb = null)
    {
        unset($this->mappings[self::TO_ENTITY][$storage], $this->mappings[self::TO_STORAGE][$entity]);
        return $this->addMapping($entity, $storage, $toEntityCb, $toStorageCb);
    }