示例#1
0
 protected function createAndPersistData()
 {
     for ($i = 1; $i <= 10; $i++) {
         $vendor = new Vendor();
         $vendor->setName(sprintf('vendor_%s', $i));
         $this->manager->persist($vendor);
     }
 }
 /**
  * {@inheritDoc}
  */
 public function getLogo()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getLogo', array());
     return parent::getLogo();
 }