N
N
noneim2016-06-27 01:53:13
symfony
noneim, 2016-06-27 01:53:13

Symfony Doctrine how to show list/settings of all tables?

For the admin panel, you need to implement the following: there are a bunch of data models in the symfony project, respectively, I would like to get the following information:
1) A complete list of these models (class name)
2) The corresponding table (+ Entity - there may be several)
3) Check whether the the structure of the table in the database of the data model, and if it does not match, then in which fields there are differences, different keys, etc., well, the button to fix with the sql preview.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
index0h, 2016-06-27
@index0h

Full list of these models (class name)

see \Doctrine\ORM\EntityManager::getMetadataFactory
same place as 1
We smoke all the same Metadata
You have just 105 keys on your keyboard for this case)) If the programmer made a mistake in the database schema and did not change the entity for it, then he must correct this mistake.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question