<?php

namespace Trade\TradeBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * tesst
 *
 * @ORM\Table(name="tesst")
 * @ORM\Entity(repositoryClass="Trade\TradeBundle\Repository\tesstRepository")
 */
class tesst
{
    /**
     * @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=255)
     */
    private $name;
    /**
     * @var string
     *
     * @ORM\Column(name="name2", type="string", length=255)
     */
    private $name2;

    /**
     * Get id
     *
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set name
     *
     * @param string $name
     *
     * @return tesst
     */
    public function setName($name)
    {
        $this->name = $name;

        return $this;
    }

    /**
     * Get name
     *
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }
}


i rwite php bin/console doctrine:generate:entities TradeBundle:tesst 

to generate the getter and setter for $name2 but i bekomme this Error please 
help i m neu in Symfony .




C:\wamp\www\KourdaSoft\webFenster>php bin/console doctrine:generate:entities 
TradeBundle:tesst
Generating entity "Trade\TradeBundle\Entity\tesst"


  [Doctrine\ORM\Mapping\MappingException]
  Class "Trade\TradeBundle\Entity\tesst" 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.

Reply via email to