Seems like you mis-configured your metadata drivers.

Also: why do you need to generate entities, if you already wrote the
entity's code?

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/

On 16 May 2016 at 12:18, <[email protected]> wrote:

> <?php
>
> namespace Trade\TradeBundle\Entity;
> use Trade\TradeBundle\Entity\BaseProduct;
> use Doctrine\ORM\Mapping as ORM;
>
>
> /**
>  * Products
>  *
>  * @ORM\Table(name="products")
>  * 
> @ORM\Entity(repositoryClass="Trade\TradeBundle\Repository\ProductsRepository")
>  */
> class Products
> {
>     /**
>      * @var int
>      *
>      * @ORM\Column(name="id", type="integer")
>      * @ORM\Id
>      * @ORM\GeneratedValue(strategy="AUTO")
>      */
>     private $id;
>
>     /**
>      * @var string
>      *
>      * @ORM\Column(name="name", type="string", length=125, nullable=true)
>      */
>     private $name;
>
>     /**
>      * @var string
>      *
>      * @ORM\Column(name="description", type="string", length=125, 
> nullable=true)
>      */
>     private $description;
>
>     /**
>      * @var float
>      *
>      * @ORM\Column(name="prise", type="float", nullable=true)
>      */
>     private $prise;
>
>     /**
>      * @var bool
>      *
>      * @ORM\Column(name="valiable", type="boolean", nullable=true)
>      */
>     private $valiable;
>
>
>     /**
>      * Get id
>      *
>      * @return int
>      */
>     public function getId()
>     {
>         return $this->id;
>     }
>
>     /**
>      * Set name
>      *
>      * @param string $name
>      *
>      * @return Products
>      */
>     public function setName($name)
>     {
>         $this->name = $name;
>
>         return $this;
>     }
>
>     /**
>      * Get name
>      *
>      * @return string
>      */
>     public function getName()
>     {
>         return $this->name;
>     }
>
>     /**
>      * Set description
>      *
>      * @param string $description
>      *
>      * @return Products
>      */
>     public function setDescription($description)
>     {
>         $this->description = $description;
>
>         return $this;
>     }
>
>     /**
>      * Get description
>      *
>      * @return string
>      */
>     public function getDescription()
>     {
>         return $this->description;
>     }
>
>     /**
>      * Set prise
>      *
>      * @param float $prise
>      *
>      * @return Products
>      */
>     public function setPrise($prise)
>     {
>         $this->prise = $prise;
>
>         return $this;
>     }
>
>     /**
>      * Get prise
>      *
>      * @return float
>      */
>     public function getPrise()
>     {
>         return $this->prise;
>     }
>
>     /**
>      * Set valiable
>      *
>      * @param boolean $valiable
>      *
>      * @return Products
>      */
>     public function setValiable($valiable)
>     {
>         $this->valiable = $valiable;
>
>         return $this;
>     }
>
>     /**
>      * Get valiable
>      *
>      * @return bool
>      */
>     public function getValiable()
>     {
>         return $this->valiable;
>     }
> }
>
>
>
>
>
>
>
> i bekome this Error :
>
>
>
> C:\wamp\www\KourdaSoft\webFenster>php bin\console doctrine:generate:entities 
> Trade\TradeBundle\Entity\Products
> Generating entity "Trade\TradeBundle\Entity\Products"
>
>
>   [Doctrine\ORM\Mapping\MappingException]
>   Class "Trade\TradeBundle\Entity\Products" is not a valid entity or mapped 
> super class.
>
>
>
>
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "doctrine-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/doctrine-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to