public function __construct(Factory $factory) { parent::__construct($factory); // foreach ($this->db->select('child, parent', $this->relationsTable, '') as $row) { // if (!isset($this->parentsIndex[$row['child']])) // $this->parentsIndex[$row['child']] = array($row['parent']); // else // $this->parentsIndex[$row['child']][] = $row['parent']; // } }
public function __construct(Factory $factory, TagFactory $tagFactory) { parent::__construct($factory); $this->tagFactory = $tagFactory; }