public function hydrate($data) { $shop =
new Shop();
$shop->
setId((int) $data['__shop_id'
]);
$shop->
setIsDefault((bool) $data['__shop_default'
]);
$shop->
setName($data['__shop_name'
]);
$shop->
setTitle($data['__shop_title'
]);
$shop->
setFallbackId((int) $data['__shop_fallback_id'
]);
$shop->
setCurrency($this->currencyHydrator->
hydrate($data));
$shop->
setCustomerGroup($this->customerGroupHydrator->
hydrate($data));
$shop->
setCategory($this->categoryHydrator->
hydrate($data));
$shop->
setLocale($this->localeHydrator->
hydrate($data));
$parent =
$data;
if ($data['parent'
]) { $parent =
$data['parent'
];
} $shop->
setTemplate($this->templateHydrator->
hydrate($parent));