Пример #1
0
 public function updateReprStorageProfile(RepresentativeStorage $representative)
 {
     $openStateId = $this->getRepresentativeByName($representative->getFirstName(), $representative->getLastName());
     if ($openStateId) {
         $representative->setOpenstateId($openStateId);
     }
     return $representative;
 }
 public function load(ObjectManager $manager)
 {
     $representative = new RepresentativeStorage();
     $representative->setStorageId(52990);
     $representative->setFirstName('Joseph');
     $representative->setLastName('Biden');
     $representative->setOfficialTitle('Vice President');
     $representative->setOpenstateId('DC000000');
     $representative->setAvatarSrc('http://google.com');
     $this->addReference('representativeStorage', $representative);
     $manager->persist($representative);
     $manager->flush();
 }
 public function setOpenstateId($openstateId)
 {
     $this->__load();
     return parent::setOpenstateId($openstateId);
 }