コード例 #1
0
ファイル: Apparel.php プロジェクト: xiaoguizhidao/beut
 public function _afterMap($rows)
 {
     if (!$this->_is_variants) {
         parent::_afterMap($rows);
     }
     return $this;
 }
コード例 #2
0
ファイル: Apparel.php プロジェクト: xiaoguizhidao/devfashion
 /**
  * @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;
 }