>
>
>
Am Montag, 16. Mai 2016 12:21:19 UTC+2 schrieb Marco Pivetta:
>
> 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, <aminiho...@gmail.com <javascript:>> 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.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> -- 
>>
>

that is my complet code but i have to try to generate this entity without 
Relation betwen Object but i bekomme the samme Problem im neue in Symfony 
plese help








 

> 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 doctrine-use...@googlegroups.com <javascript:>.
>> To post to this group, send email to doctri...@googlegroups.com 
>> <javascript:>.
>> 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 doctrine-user+unsubscr...@googlegroups.com.
To post to this group, send email to doctrine-user@googlegroups.com.
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