From 840b1e79841daf3d58d1e8dfb20bdcdc4902144d Mon Sep 17 00:00:00 2001 From: Christophe Willemsen Date: Thu, 29 Mar 2012 16:06:50 +0200 Subject: [PATCH 1/2] added sfentityClass snippet --- .../Annotations/entityclass.sublime-snippet | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Snippets/Doctrine/Annotations/entityclass.sublime-snippet 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 + From 53c8b55a3ae874f4a4b32f16a98e64657de4448f Mon Sep 17 00:00:00 2001 From: Christophe Willemsen Date: Thu, 29 Mar 2012 16:08:44 +0200 Subject: [PATCH 2/2] added doc for sfentityClass --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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