public function setup() { $this->entities = array('DxBuySell\\Entity\\Category', 'DxBuySell\\Entity\\Item'); parent::setup(); $this->repo = $this->em->getRepository('DxBuySell\\Entity\\Category'); $this->catTree = array('items' => array('title' => 'Items', 'children' => array('art' => array('title' => 'Art'), 'computers' => array('title' => 'Computers'), 'collectibles' => array('title' => 'Collectibles', 'children' => array('antiques' => array('title' => 'Antiques'), 'cartoonCharacters' => array('title' => 'Cartoon Characters'), 'dolls' => array('title' => 'Dolls'), 'coins' => array('title' => 'Coins', 'children' => array('asia' => array('title' => 'Asia'), 'australia' => array('title' => 'Australia'), 'britain' => array('title' => 'Britain', 'children' => array('britainOne' => array('title' => 'Britain One', 'children' => array('britainTwo' => array('title' => 'Britain Two', 'children' => array('britainThree' => array('title' => 'Britain Three')))))))))))))); }
public function setup() { $this->entities = array('DxBuySell\\Entity\\Category', 'DxBuySell\\Entity\\Item', 'DxUser\\Entity\\User'); parent::setup(); $this->repoCat = $this->em->getRepository('DxBuySell\\Entity\\Category'); $this->repoItem = $this->em->getRepository('DxBuySell\\Entity\\Item'); $this->repoUser = $this->em->getRepository('DxUser\\Entity\\User'); $this->catTree = array('items' => array('title' => 'Items', 'children' => array('smartphone' => array('title' => 'Smart Phones', 'children' => array('apple' => array('title' => 'Apple'), 'samsung' => array('title' => 'Samsung'))), 'mobilephone' => array('title' => 'Mobile Phone'), 'computers' => array('title' => 'Computers'), 'collectibles' => array('title' => 'Collectibles', 'children' => array('antiques' => array('title' => 'Antiques'), 'cartoonCharacters' => array('title' => 'Cartoon Characters'), 'dolls' => array('title' => 'Dolls'), 'coins' => array('title' => 'Coins', 'children' => array('asia' => array('title' => 'Asia'), 'australia' => array('title' => 'Australia')))))))); }