/** * Set a Template inheritors (View) as not up to date. * * @param View $view */ public function setTemplateInheritorsCssToUpdate(View $view) { if (!$view instanceof Template) { return; } foreach ($view->getInheritors() as $inheritor) { $inheritor->setCssUpToDate(false); $this->uow->persist($inheritor); $this->setTemplateInheritorsCssToUpdate($inheritor); } }
/** * Update a Template inheritors (View) if necessary. * * @param View $view */ public function updateTemplateInheritorsCss(View $view) { if (!$view instanceof Template) { return; } foreach ($view->getInheritors() as $inheritor) { $this->updateViewCss($inheritor); $this->updateTemplateInheritorsCss($inheritor); } }