public function transform($value)
    {
        $sites = array();

        if (!empty($value)) {
            foreach ($value as $associatedSite) {
                $sites[] = $this->siteRepositoy->findOneBySiteId($associatedSite['siteId']);
            }
        }

        return $sites;
    }
public function transform($value)
    {
        $sites = array();

        if (!empty($value)) {
            foreach ($value as $associatedSite) {
                $sites[] = $this->siteRepositoy->findOneBySiteId($associatedSite['siteId']);
            }
        }

        return $sites;
    }
@param array $value

@return SiteInterface

@throws TransformationFailedException When the transformation fails.