V
V
Vadim2020-11-06 11:18:10
Doctrine ORM
Vadim, 2020-11-06 11:18:10

Doctrine how to add a column?

Good afternoon

$conn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams);

$sm = $conn->getSchemaManager();
$table = $sm->listTableDetails('users');

$table->addColumn('email_address', 'string');


How to apply changes to a table?

Thanks

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question