Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi db access #1437

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

dgrothaus-mc
Copy link
Contributor

Ich habe den bereits vorhandenen PR #1147 aufgegriffen und sowohl yform als auch den Table Manager entsprechend angepasst. Migrieren und Editieren von Daten funktioniert soweit stabil. Die gemachten Änderungen sind intern jetzt drei Wochen lang in einem Projekt getestet worden.

So lange in der Redaxo config.yml nur eine Datenbankverbindung eingerichtet ist, ändert sich weder etwas am Verhalten noch am Aussehen. Die zusätzlichen Felder und Funktionen werden erst dann sichtbar, wenn mehr als eine Datenbankverbindung eingerichtet ist.

Copy link
Contributor

@alxndr-w alxndr-w left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spricht etwas gegen den PR? Ich fände es klasse, wenn DB[n] in YForm zugänglich wäre.

Mirror the PHP and Redaxo core requirements from package.yml to
composer.json.
Don't throw an exception when no related table or field is set.
Let yform track the db_id of a table.
Allow to set the database id for yform by passing the parameter
$param['db_id'] to the constructor or by calling the method
`setDatabaseId()`
Use the db_id from yform. Pass the db_id to rex_sql calls and add a
getter to get the database id for managed tables.
All calls that are made by classes using yform are now aware of db_id
and use the proper ID when querying the database.
Editing and migrating tables make use of db_id.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants