/** * Get the rows of a foreign table where the title column equals a given * value. * * @param DB\Table $table * @param string $value The value to match against the title column. * @return Database_Result */ protected function getRecordsByTitle($table, $value) { $table->resetFilters(); $table->addFilter($table->getTitleColumn()->getName(), '=', $value); return $table->getRecords(); }