public static function updateMenulink($post)
    {
        if(self::isInMenuLinks($post->postID, $post->getTable())) {
            $menuLinks = MenuLink::where('belongsToID', $post->postID)->where('belongsTo', $post->getTable())->get();
            foreach($menuLinks as $menuLink){
                $menuLink->params = $post->menuLinkParameters();
                $menuLink->save();
            }
        }
    }
public static function updateMenulink($post)
    {
        if(self::isInMenuLinks($post->postID, $post->getTable())) {
            $menuLinks = MenuLink::where('belongsToID', $post->postID)->where('belongsTo', $post->getTable())->get();
            foreach($menuLinks as $menuLink){
                $menuLink->params = $post->menuLinkParameters();
                $menuLink->save();
            }
        }
    }
public static function updateMenulink ( $ post ) { if ( self :: isInMenuLinks ( $ post -> postID , $ post -> getTable ( ) ) ) { $ menuLinks = MenuLink :: where ( 'belongsToID' , $ post -> postID ) -> where ( 'belongsTo' , $ post -> getTable ( ) ) -> get ( ) ; foreach ( $ menuLinks as $ menuLink ) { $ menuLink -> params = $ post -> menuLinkParameters ( ) ; $ menuLink -> save ( ) ; } } }
Update post parameters in MenuLink.

@param  object $post
@return void
Update post parameters in MenuLink .