Answer the question
In order to leave comments, you need to log in
How to create columns in Doctrine Schema?
Hello I
continue to understand Silex. I use schem to create tables.
However, I can not find a human description of how to describe the parameters of the columns. All descriptions use yaml, but for some reason there is no description in php.
I mean the following way to create:
if (!$schema->tablesExist('vn_articles')) {
$vn_articles = new Table('vn_articles');
$vn_articles->addColumn('id', 'integer', array('autoincrement' => true));
$vn_articles->setPrimaryKey(array('id'));
$vn_articles->addColumn('title', 'string');
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question