How can I implement data output from several unrelated tables in yii2? With one table, I simply created a model, with the help of Gii, then added crud and displayed it on the form.
- And what's the point of displaying together 2 unrelated tables in one query? Here either you need 2 queries, or you need the tables to be related. - lyhoshva
- @lyhoshva is a base in which there are a bunch of tables without foreign keys. The data in the database is constantly updated. Task: to pull data from several tables (every day) and save them to another database so that they are not subject to change. - cruim
- If the tables are not connected logically, then you need to do it through several queries. If you simply do not have foreign keys, then you just need to make connections - for them, foreign keys are not needed as such (you just need to specify which field to link the tables) - lyhoshva
|