Closed ikwattro closed 12 years ago
This snippet generates the basic entityClass as of the sfcontroller snippet
snippet : sfentityClass
output :
namespace VendorName\BundleNameBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; /* * @ORM\Entity(repositoryClass="VendorName\BundleNameBundle\Repository\repositoryClassRepository") * @ORM\Table(name="table_name") */ class repositoryClass { /** * @ORM\Id * @ORM\Column(type="integer") * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; }
Thanks, great!
This snippet generates the basic entityClass as of the sfcontroller snippet
snippet : sfentityClass
output :