public function setAction($action)
    {
        if (!in_array($action, $this->acceptedValues)) {
            $acceptedValuesString = implode(', ', $this->acceptedValues);
            throw new \Parable\ORM\Exception("Invalid action set, only {$acceptedValuesString} are allowed.");
        }
        $this->action = $action;
        return $this;
    }
public function setAction($action)
    {
        if (!in_array($action, $this->acceptedValues)) {
            $acceptedValuesString = implode(', ', $this->acceptedValues);
            throw new \Parable\ORM\Exception("Invalid action set, only {$acceptedValuesString} are allowed.");
        }
        $this->action = $action;
        return $this;
    }
public function setAction ( $ action ) { if ( ! in_array ( $ action , $ this -> acceptedValues ) ) { $ acceptedValuesString = implode ( ', ' , $ this -> acceptedValues ) ; throw new \ Parable \ ORM \ Exception ( "Invalid action set, only {$acceptedValuesString} are allowed." ) ; } $ this -> action = $ action ; return $ this ; }
Set the type of query we're going to do.

@param string $action

@return $this
@throws \Parable\ORM\Exception
Set the type of query we re going to do .