public function getManyQuery(Table $table, $otherColumnName = null) { list($key, $thisKey) = $table->getReferenceKeyNames($this->getTable(), $otherColumnName); return $table->where([$key => $this->_data[$thisKey]]); }