code: public function getDataSource($tableName)
      {
          $model = $this->getForeignModelName($tableName);
          if (isset($this->dataSources[$model])) {
              return $this->dataSources[$model];
          }
          foreach ($this->dataSources as $dataSource) {
              if ($dataSource->foreignModel->tableName === $tableName) {
                  return $dataSource;
              }
          }
  
          return false;
      }
docs: Get data source.
  
  @param string $tableName the table name
  
  @return DataSource|bool the data source based on {$tableName} or false if not found