public function create()
    {
        /**
         * @var Menu $menu
         */
        $classNamespace = $this->getEntityNamespace();
        $menu = new $classNamespace();
        $menu
            ->setDescription('')
            ->setSubnodes(new ArrayCollection())
            ->setEnabled(false);

        return $menu;
    }
public function create()
    {
        /**
         * @var Menu $menu
         */
        $classNamespace = $this->getEntityNamespace();
        $menu = new $classNamespace();
        $menu
            ->setDescription('')
            ->setSubnodes(new ArrayCollection())
            ->setEnabled(false);

        return $menu;
    }
public function create ( ) { /**
         * @var Menu $menu
         */ $ classNamespace = $ this -> getEntityNamespace ( ) ; $ menu = new $ classNamespace ( ) ; $ menu -> setDescription ( '' ) -> setSubnodes ( new ArrayCollection ( ) ) -> setEnabled ( false ) ; return $ menu ; }
Creates an instance of Menu entity.

@return Menu Empty entity
Creates an instance of Menu entity .