PHP Symfony2 add 60 years to the both day Datetime object of a person
问题 I need to add 60 Years to the date of birth of a person/worker, this person is stored in the database and I have the following code to define this person plus the getters and setters: /** * @ORM\Entity * @ORM\Table(name="Worker") * @ORM\Entity(repositoryClass="Osd\RetireBundle\Entity\WorkerRepository") */ class Worker { /** * @ORM\Id * @ORM\Column(type="integer") * @ORM\GeneratedValue(strategy="AUTO") */ private $idWorker; /** * @ORM\Column(type="string", length=20) */ private $omang; /** *