Model/ResourceModel/Catalog.php
public function resetCatalog($from = null, $to = null)
    {
        $conn = $this->getConnection();
        if ($from && $to) {
            $where = [
                'created_at >= ?' => $from . ' 00:00:00',
                'created_at <= ?' => $to . ' 23:59:59',
                'imported is ?' => new \Zend_Db_Expr('not null')
            ];
        } else {
            $where = $conn->quoteInto(
                'imported is ?',
                new \Zend_Db_Expr('not null')
            );
        }
        $num = $conn->update(
            $this->getTable(Schema::EMAIL_CATALOG_TABLE),
            [
                'imported' => new \Zend_Db_Expr('null'),
                'modified' => new \Zend_Db_Expr('null'),
            ],
            $where
        );

        return $num;
    }
public function resetCatalog($from = null, $to = null)
    {
        $conn = $this->getConnection();
        if ($from && $to) {
            $where = [
                'created_at >= ?' => $from . ' 00:00:00',
                'created_at <= ?' => $to . ' 23:59:59',
                'imported is ?' => new \Zend_Db_Expr('not null')
            ];
        } else {
            $where = $conn->quoteInto(
                'imported is ?',
                new \Zend_Db_Expr('not null')
            );
        }
        $num = $conn->update(
            $this->getTable(Schema::EMAIL_CATALOG_TABLE),
            [
                'imported' => new \Zend_Db_Expr('null'),
                'modified' => new \Zend_Db_Expr('null'),
            ],
            $where
        );

        return $num;
    }
public function resetCatalog ( $ from = null , $ to = null ) { $ conn = $ this -> getConnection ( ) ; if ( $ from && $ to ) { $ where = [ 'created_at >= ?' => $ from . ' 00:00:00' , 'created_at <= ?' => $ to . ' 23:59:59' , 'imported is ?' => new \ Zend_Db_Expr ( 'not null' ) ] ; } else { $ where = $ conn -> quoteInto ( 'imported is ?' , new \ Zend_Db_Expr ( 'not null' ) ) ; } $ num = $ conn -> update ( $ this -> getTable ( Schema :: EMAIL_CATALOG_TABLE ) , [ 'imported' => new \ Zend_Db_Expr ( 'null' ) , 'modified' => new \ Zend_Db_Expr ( 'null' ) , ] , $ where ) ; return $ num ; }
Reset for re-import.

@param string|null $from
@param string|null $to

@return int
Reset for re - import .