2012-12-19 1 views

답변

5

, 소스 정의에서 여러 필드를 설정할 수

// The source ID here is the one retrieved from each data item in the XML file, and 
// used to identify specific items 
$this->map = new MigrateSQLMap($this->machineName, 
    array(
    'vendor_code' => array(
     'type' => 'varchar', 
     'length' => 250, 
     'not null' => TRUE, 
    ), 
    'client_code' => array(
     'type' => 'varchar', 
     'length' => 250, 
     'not null' => TRUE, 
    ), 
), 
    MigrateDestinationEntityAPI::getKeySchema('vendor') 
); 

를 코드 위에서 * vendor_code *와 * client_code의 *는 복합 키의 성분이다.