コード例 #1
0
 private function newTestClassName($TestCreator)
 {
     $Creator = $this->app['orm.em']->getRepository('\\Eccube\\Entity\\Member')->find(1);
     $TestClassName = new \Eccube\Entity\ClassName();
     $TestClassName->setName('形状')->setRank(100)->setDelFlg(0)->setCreator($TestCreator);
     return $TestClassName;
 }
コード例 #2
0
 private function newTestClassName($TestCreator)
 {
     $Creator = $this->createMember();
     $TestClassName = new \Eccube\Entity\ClassName();
     $TestClassName->setName('形状')->setRank(100)->setDelFlg(0)->setCreator($TestCreator);
     return $TestClassName;
 }
コード例 #3
0
 /**
  * 規格を生成する.
  *
  * @param $class_name Eccube\Entity\ClassName 規格名
  * @param $rank int ランク
  * @return void
  */
 function createClassName($class_name, $rank)
 {
     $ClassName = new \Eccube\Entity\ClassName();
     $ClassName->setCreator($this->app['eccube.repository.member']->find(2))->setDelFlg((string) '0')->setName($class_name)->setRank($rank);
     $this->saveEntity($ClassName);
     $this->arrClassName[] = $ClassName;
     print "+";
 }
コード例 #4
0
 private function newTestClassName($TestCreator)
 {
     $TestClassName = new \Eccube\Entity\ClassName();
     $TestClassName->setName('形状')->setRank(100)->setDelFlg(false)->setCreator($TestCreator);
     return $TestClassName;
 }