public function create()
    {
        /**
         * @var Comment $comment
         */
        $classNamespace = $this->getEntityNamespace();
        $comment = new $classNamespace();
        $comment
            ->setParent(null)
            ->setChildren(new ArrayCollection())
            ->setEnabled(true)
            ->setCreatedAt($this->now());

        return $comment;
    }
public function create()
    {
        /**
         * @var Comment $comment
         */
        $classNamespace = $this->getEntityNamespace();
        $comment = new $classNamespace();
        $comment
            ->setParent(null)
            ->setChildren(new ArrayCollection())
            ->setEnabled(true)
            ->setCreatedAt($this->now());

        return $comment;
    }
public function create ( ) { /**
         * @var Comment $comment
         */ $ classNamespace = $ this -> getEntityNamespace ( ) ; $ comment = new $ classNamespace ( ) ; $ comment -> setParent ( null ) -> setChildren ( new ArrayCollection ( ) ) -> setEnabled ( true ) -> setCreatedAt ( $ this -> now ( ) ) ; return $ comment ; }
Creates an instance of Comment.

@return Comment New Cart entity
Creates an instance of Comment .