src/Application.php
public function __async_addnav($materialId = null, $navigation = null)
    {
        // Save record
//        $sm = new CMSNavMaterial(false);
        $sm = new NavigationMaterial();
        $sm->MaterialID = $materialId;
        $sm->StructureID = $navigation;
        $sm->Active = '1';
        $sm->save();
    }
public function __async_addnav($materialId = null, $navigation = null)
    {
        // Save record
//        $sm = new CMSNavMaterial(false);
        $sm = new NavigationMaterial();
        $sm->MaterialID = $materialId;
        $sm->StructureID = $navigation;
        $sm->Active = '1';
        $sm->save();
    }
public function __async_addnav ( $ materialId = null , $ navigation = null ) { // Save record //        $sm = new CMSNavMaterial(false); $ sm = new NavigationMaterial ( ) ; $ sm -> MaterialID = $ materialId ; $ sm -> StructureID = $ navigation ; $ sm -> Active = '1' ; $ sm -> save ( ) ; }
Add new structure to entity
@param int $navigation Parent navigation identifier
Add new structure to entity