Example #1
0
 /**
  * @param ObjectManager            $objectManager
  * @param ColumnMapperInterface    $columnManager
  * @param LanguageManagerInterface $languageManager
  */
 public function __construct(ObjectManager $objectManager, ColumnMapperInterface $columnManager, LanguageManagerInterface $languageManager)
 {
     $tables = new EavTables($objectManager);
     $this->_em = $objectManager;
     $this->_tables = $tables->getTables();
     $this->_columnManager = $columnManager;
 }
Example #2
0
 public function __construct(ModuleRepositoryInterface $objectRepository)
 {
     $this->_class = $objectRepository;
     $this->_em = $objectRepository->getEntityManager();
     $this->parameters = new ArrayCollection();
     $tables = new EavTables($this->_em);
     $this->_tables = $tables->getTables();
     if ($objectRepository->getModule() && !$objectRepository->getModule()->isFlattern()) {
         $this->setParameter(':module_id', $objectRepository->getModule()->getId());
     }
 }