2010-02-17 2 views

답변

1

설명서가 잘못되었습니다. 교리/마이그레이션/base.php에 보면 다음과 같은 함수 프로토 타입을 볼 수

/** 
* Add a add column change. 
* 
* @param string $tableName Name of the table 
* @param string $columnName Name of the column 
* @param string $type Type of the column 
* @param string $length Length of the column 
* @param array $options Array of options for the column 
* @return void 
*/ 
public function addColumn($tableName, $columnName, $type, $length = null, array $options = array()) 

그래서 길이를 추가, 당신은 4 매개 변수로 제공합니다. 나는 그 순간의 선택을 무시하고있다.

0

, 당신은 Doctrine_Migration_Base::column()$options['length']에 코드와 Doctrine_Migration_Base::_addChange()에서 두 번째 매개 변수를 따를 수 있습니다. 소스 코드를 수시로 확인하십시오. 개요 :

+0

의사가 부족하지만 Doctrine이 옵션으로 허용 할 수있는 옵션이 없기 때문에 코드를 자세히 살펴 보았습니다. '길이'128 또는 'notnull'을 true로 추가하려고하면 해당 값이 무시됩니다. – rxgx

관련 문제