Doctrine2 ORM does not save changes to a DateTime field
I have a User entity: use Doctrine\ORM\Mapping as ORM; /** * ExampleBundle\Entity\User * * @ORM\Entity() */ class User { // ... /** * @ORM\Column(type="service_expires_at", type="date", nullable=true) */ private $service_expires_at; public function getServiceExpiresAt() { return $this->service_expires_at; } public function setServiceExpiresAt(\DateTime $service_expires_at) { $this->service_expires_at = $service_expires_at; } } When i update the User's service_expires_at as following, the updated service_expires_at value is NOT saved back into the database: $date = $user->getServiceExpiresAt();