示例#1
0
 public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)
 {
     $keys = VTestLocation1Peer::getFieldNames($keyType);
     if (array_key_exists($keys[0], $arr)) {
         $this->setTestScheduleId($arr[$keys[0]]);
     }
     if (array_key_exists($keys[1], $arr)) {
         $this->setLocation1($arr[$keys[1]]);
     }
     if (array_key_exists($keys[2], $arr)) {
         $this->setTotal($arr[$keys[2]]);
     }
 }