diff --git a/README.md b/README.md index ca0e16a..aff6981 100644 --- a/README.md +++ b/README.md @@ -164,6 +164,29 @@ class TransformerNameTransformer implements DataTransformerInterface */ ``` +`sfentityClass` + +``` php +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; +} +``` + `sfidcolumn` ``` php diff --git a/Snippets/Doctrine/Annotations/entityclass.sublime-snippet b/Snippets/Doctrine/Annotations/entityclass.sublime-snippet new file mode 100644 index 0000000..f6799b7 --- /dev/null +++ b/Snippets/Doctrine/Annotations/entityclass.sublime-snippet @@ -0,0 +1,24 @@ + + + sfentityClass + source.php + Symfony2 / Entity / Entity class +