public function load(ObjectManager $manager) { $stRepresentative = new RepresentativeStorage(); $stRepresentative->setStorageId(44926); $stRepresentative->setFirstName('Joseph'); $stRepresentative->setLastName('Biden'); $stRepresentative->setOfficialTitle('Vice President'); $stRepresentative->setDistrict($this->getReference('district_us')); $stRepresentative->setAvatarSrc('http://google.com/'); $stRepresentative->setUpdatedAt(new \DateTime('2010-01-01')); $this->addReference('vice_president', $stRepresentative); $manager->persist($stRepresentative); $manager->flush(); }
public function setUpdatedAt($updatedAt) { $this->__load(); return parent::setUpdatedAt($updatedAt); }