public function setCategoryId($categoryId)
    {
        $categoryId = (int) $categoryId;

        if ($this->categoryId < 0) {
            throw new \UnderflowException('Value of "categoryId" must be greater than 0');
        }


        if ($this->exists() && $this->categoryId !== $categoryId) {
            $this->updated['categoryId'] = true;
        }

        $this->categoryId = $categoryId;

        return $this;
    }
public function setCategoryId($categoryId)
    {
        $categoryId = (int) $categoryId;

        if ($this->categoryId < 0) {
            throw new \UnderflowException('Value of "categoryId" must be greater than 0');
        }


        if ($this->exists() && $this->categoryId !== $categoryId) {
            $this->updated['categoryId'] = true;
        }

        $this->categoryId = $categoryId;

        return $this;
    }
public function setCategoryId ( $ categoryId ) { $ categoryId = ( int ) $ categoryId ; if ( $ this -> categoryId < 0 ) { throw new \ UnderflowException ( 'Value of "categoryId" must be greater than 0' ) ; } if ( $ this -> exists ( ) && $ this -> categoryId !== $ categoryId ) { $ this -> updated [ 'categoryId' ] = true ; } $ this -> categoryId = $ categoryId ; return $ this ; }
Set value for field "category_id"

@param  int $categoryId
@return $this
@throws \UnderflowException
Set value for field category_id