public function _afterMap($rows) { if (!$this->_is_variants) { parent::_afterMap($rows); } return $this; }
/** * @param $rows * @return $this */ public function _afterMap($rows) { // Free some memory foreach ($this->_assocs as $assoc) { if ($assoc->getEntityid()) { $this->getTools()->clearNestedObject($assoc); } } $this->flushCacheAssociatedPrice(); if (!$this->_is_variants && $rows) { return parent::_afterMap($rows); } return $rows; }