...
 
Commits (1)
......@@ -92,7 +92,7 @@ class CoursgratuitComWebsite
foreach($categories as $child)
{
/* @var $child \PhpExtended\CoursgratuitCom\CoursgratuitComCategory */
$elements[] = new InformationData('coursgratuit.com', 'catg', 'name', CoursgratuitComCategory::class, $child->getId(), 'name', (string) $category->getName());
$elements[] = new InformationData('coursgratuit.com', 'catg', 'name', CoursgratuitComCategory::class, $child->getId(), 'name', (string) $child->getName());
if($category !== null)
$elements[] = new InformationRelation('coursgratuit.com', 'catg', 'pcat', CoursgratuitComCategory::class, '@self', $child->getId(), 'coursgratuitComParentCategory', (string) $category->path);
}
......