/** * Execute action. * * @param string $mode * @param array $args * * @return \atk4\dsql\Query */ public function action($mode, $args = []) { if (!$this->persistence) { throw new Exception(['action() requires model to be associated with db']); } return $this->persistence->action($this, $mode, $args); }