src/Model/Service/SqlService.php
public function remove($id)
    {
        if (is_null($this->schema)) {
            throw SystemException::forNoSchema();
        }

        $table = $this->schema->getName();
        $primary = $this->schema->getPrimaryFieldName();
        //please rely on SQL CASCADING ON DELETE
        $model = $this->resource->model();
        $model[$primary] = $id;
        return $model->remove($table);
    }
public function remove($id)
    {
        if (is_null($this->schema)) {
            throw SystemException::forNoSchema();
        }

        $table = $this->schema->getName();
        $primary = $this->schema->getPrimaryFieldName();
        //please rely on SQL CASCADING ON DELETE
        $model = $this->resource->model();
        $model[$primary] = $id;
        return $model->remove($table);
    }
public function remove ( $ id ) { if ( is_null ( $ this -> schema ) ) { throw SystemException :: forNoSchema ( ) ; } $ table = $ this -> schema -> getName ( ) ; $ primary = $ this -> schema -> getPrimaryFieldName ( ) ; //please rely on SQL CASCADING ON DELETE $ model = $ this -> resource -> model ( ) ; $ model [ $ primary ] = $ id ; return $ model -> remove ( $ table ) ; }
Remove from database
PLEASE BECAREFUL USING THIS !!!
It's here for clean up scripts

@param *array $object
@param *int $id
Remove from database PLEASE BECAREFUL USING THIS !!! It s here for clean up scripts