public function create()
    {
        /**
         * @var Attribute $attribute
         */
        $classNamespace = $this->getEntityNamespace();
        $attribute = new $classNamespace();
        $attribute->setEnabled(true)
            ->setValues(new ArrayCollection())
            ->setCreatedAt($this->now());

        return $attribute;
    }
public function create()
    {
        /**
         * @var Attribute $attribute
         */
        $classNamespace = $this->getEntityNamespace();
        $attribute = new $classNamespace();
        $attribute->setEnabled(true)
            ->setValues(new ArrayCollection())
            ->setCreatedAt($this->now());

        return $attribute;
    }
public function create ( ) { /**
         * @var Attribute $attribute
         */ $ classNamespace = $ this -> getEntityNamespace ( ) ; $ attribute = new $ classNamespace ( ) ; $ attribute -> setEnabled ( true ) -> setValues ( new ArrayCollection ( ) ) -> setCreatedAt ( $ this -> now ( ) ) ; return $ attribute ; }
Creates an Attribute instance.

@return Attribute New Attribute entity
Creates an Attribute instance .