Ejemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function removeChild($parent, $child)
 {
     $result = parent::removeChild($parent, $child);
     if ($this->_children !== null) {
         $query = (new Query())->select('child')->from($this->itemChildTable)->where(['parent' => $parent->name]);
         $this->_children[$parent->name] = $query->column($this->db);
     }
     $this->invalidate(self::PART_CHILDREN);
     return $result;
 }