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; }
private function newTestClassName($TestCreator) { $Creator = $this->createMember(); $TestClassName = new \Eccube\Entity\ClassName(); $TestClassName->setName('形状')->setRank(100)->setDelFlg(0)->setCreator($TestCreator); return $TestClassName; }
/** * 規格を生成する. * * @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 "+"; }
private function newTestClassName($TestCreator) { $TestClassName = new \Eccube\Entity\ClassName(); $TestClassName->setName('形状')->setRank(100)->setDelFlg(false)->setCreator($TestCreator); return $TestClassName; }