Given the following property with PHPDoc comment containing an annotation for Doctrine:
/**
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
What is the best way to "comment out" one of the annotation lines? e.g. something like this:
/**
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* //Comment out please// @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
Is there a supported way, or a general convention for doing this?
Just remove the @ for Annotation recognition.
/**
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With