src/Rentgen/Database/Constraint/ForeignKey.php
public function setDeleteAction($deleteAction)
    {
        $deleteAction = strtoupper($deleteAction);
        if (!in_array($deleteAction, $this->getAvailableActions())) {
           throw new \InvalidArgumentException(sprintf('Action %s does not exist.', $deleteAction));
        }
        $this->deleteAction = $deleteAction;
    }
public function setDeleteAction($deleteAction)
    {
        $deleteAction = strtoupper($deleteAction);
        if (!in_array($deleteAction, $this->getAvailableActions())) {
           throw new \InvalidArgumentException(sprintf('Action %s does not exist.', $deleteAction));
        }
        $this->deleteAction = $deleteAction;
    }
public function setDeleteAction ( $ deleteAction ) { $ deleteAction = strtoupper ( $ deleteAction ) ; if ( ! in_array ( $ deleteAction , $ this -> getAvailableActions ( ) ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Action %s does not exist.' , $ deleteAction ) ) ; } $ this -> deleteAction = $ deleteAction ; }
Sets a delete action.

@param string $deleteAction Delete action.

@throws InvalidArgumentException If the provided argument is not of action type.

@return void
Sets a delete action .