/**
  * Exports the object as an array.
  *
  * You can specify the key type of the array by passing one of the class
  * type constants.
  *
  * @param     string  $keyType (optional) One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_CAMELNAME,
  *                    TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM.
  *                    Defaults to TableMap::TYPE_PHPNAME.
  * @param     boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE.
  * @param     array $alreadyDumpedObjects List of objects to skip to avoid recursion
  * @param     boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE.
  *
  * @return array an associative array containing the field names (as keys) and field values
  */
 public function toArray($keyType = TableMap::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false)
 {
     if (isset($alreadyDumpedObjects['физическиеобъёмы'][$this->hashCode()])) {
         return '*RECURSION*';
     }
     $alreadyDumpedObjects['физическиеобъёмы'][$this->hashCode()] = true;
     $keys = физическиеобъёмыTableMap::getFieldNames($keyType);
     $result = array($keys[0] => $this->getId(), $keys[1] => $this->getдата(), $keys[2] => $this->getучастокработ(), $keys[3] => $this->getтипработ(), $keys[4] => $this->getплан(), $keys[5] => $this->getфакт(), $keys[6] => $this->getпричинаотставания());
     if ($result[$keys[1]] instanceof \DateTime) {
         $result[$keys[1]] = $result[$keys[1]]->format('c');
     }
     $virtualColumns = $this->virtualColumns;
     foreach ($virtualColumns as $key => $virtualColumn) {
         $result[$key] = $virtualColumn;
     }
     if ($includeForeignObjects) {
         if (null !== $this->aучасткиработ) {
             switch ($keyType) {
                 case TableMap::TYPE_CAMELNAME:
                     $key = '�часткиработ';
                     break;
                 case TableMap::TYPE_FIELDNAME:
                     $key = 'Участки_работ';
                     break;
                 default:
                     $key = 'участкиработ';
             }
             $result[$key] = $this->aучасткиработ->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
         if (null !== $this->aКалендарь) {
             switch ($keyType) {
                 case TableMap::TYPE_CAMELNAME:
                     $key = '�алендарь';
                     break;
                 case TableMap::TYPE_FIELDNAME:
                     $key = 'Календарь';
                     break;
                 default:
                     $key = 'Календарь';
             }
             $result[$key] = $this->aКалендарь->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
         if (null !== $this->aтипыработ) {
             switch ($keyType) {
                 case TableMap::TYPE_CAMELNAME:
                     $key = '�ипыработ';
                     break;
                 case TableMap::TYPE_FIELDNAME:
                     $key = 'Типы_работ';
                     break;
                 default:
                     $key = 'типыработ';
             }
             $result[$key] = $this->aтипыработ->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
     }
     return $result;
 }