null, 'source_id' => null, 'rowset_checksum' => null, 'start_time' => null, 'end_time' => null, // TODO: Check whether succeeded could be dropped 'succeeded' => null, ); public function prepareImportedObjectQuery($columns = array('object_name')) { return $this->getDb()->select()->from( array('r' => 'imported_row'), $columns )->joinLeft( array('rsr' => 'imported_rowset_row'), 'rsr.row_checksum = r.checksum', array() )->where( 'rsr.rowset_checksum = ?', $this->getConnection()->quoteBinary($this->rowset_checksum) ); } }