// /Symfony/src/Vendor/Bundlename/Entity/Example.php /** * @ORM\Column(type=“datetime“, nullable=true) */ private $date; /** * __toString() * * @return string */ public function __toString() { if ($this->getDate()) { $somedate = $this->getDate()->format(‚Y-m-d H:i:s‘); } return ($somedate) ? : “; } /** * Set date *…