xPDOManager.alterField
Последнее обновление not available | История страницы | Улучшить эту страницу | Сообщить о проблеме
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn morexPDOManager::alterField¶
Изменяет существующий столбец в таблице класса. Массив $options описывает новое определение столбца.
Синтаксис¶
boolean alterField (string $class, string $name, [array $options = array()])
Пример¶
$manager = $xpdo->getManager();
$manager->alterField('MyVendor\\MyPackage\\MyModel', 'subtitle', array(
'dbtype' => 'varchar',
'precision' => '512',
'phptype' => 'string',
'null' => true,
));
Смотрите также¶
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn more










