The documentation is incorrect. Looking at Doctrine / Migration / base.php, you can see the following function prototype:
public function addColumn($tableName, $columnName, $type, $length = null, array $options = array())
So, to add the length, you give it as the 4th parameter. I ignore the options at the moment.
source
share