src/Application.php
public function __async_removenav($materialId = null, $navigation = null)
    {
        $structureMaterials = dbQuery('structurematerial')->cond('MaterialID', $materialId)->cond('StructureID', $navigation)->first();
        $structureMaterials->delete();
    }
public function __async_removenav($materialId = null, $navigation = null)
    {
        $structureMaterials = dbQuery('structurematerial')->cond('MaterialID', $materialId)->cond('StructureID', $navigation)->first();
        $structureMaterials->delete();
    }
public function __async_removenav ( $ materialId = null , $ navigation = null ) { $ structureMaterials = dbQuery ( 'structurematerial' ) -> cond ( 'MaterialID' , $ materialId ) -> cond ( 'StructureID' , $ navigation ) -> first ( ) ; $ structureMaterials -> delete ( ) ; }
Delete structure from entity
@param int $navigation Parent navigation identifier
Delete structure from entity