/**
  * 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проект(), $keys[7] => $this->getгод(), $keys[8] => $this->getмесяц(), $keys[9] => $this->getдатаотчёта(), $keys[10] => $this->getучастокработ());
     if ($result[$keys[9]] instanceof \DateTime) {
         $result[$keys[9]] = $result[$keys[9]]->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);
         }
         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;
 }
 /**
  * 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факт());
     $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;
 }
 /**
  * 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->getдата(), $keys[1] => $this->getгод(), $keys[2] => $this->getполугодие(), $keys[3] => $this->getквартал(), $keys[4] => $this->getномермесяца(), $keys[5] => $this->getмесяц(), $keys[6] => $this->getдень(), $keys[7] => $this->getномернедели(), $keys[8] => $this->getденьнедели(), $keys[9] => $this->getденьвгоду());
     if ($result[$keys[0]] instanceof \DateTime) {
         $result[$keys[0]] = $result[$keys[0]]->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);
         }
         if (null !== $this->collвыработкаs) {
             switch ($keyType) {
                 case TableMap::TYPE_CAMELNAME:
                     $key = '�ыработкаs';
                     break;
                 case TableMap::TYPE_FIELDNAME:
                     $key = 'Выработкаs';
                     break;
                 default:
                     $key = 'выработкаs';
             }
             $result[$key] = $this->collвыработкаs->toArray(null, false, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects);
         }
         if (null !== $this->collдатыобновленийдашбордовs) {
             switch ($keyType) {
                 case TableMap::TYPE_CAMELNAME:
                     $key = '�атыобновленийдашбордовs';
                     break;
                 case TableMap::TYPE_FIELDNAME:
                     $key = 'Даты_обновлений_дашбордовs';
                     break;
                 default:
                     $key = 'датыобновленийдашбордовs';
             }
             $result[$key] = $this->collдатыобновленийдашбордовs->toArray(null, false, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects);
         }
         if (null !== $this->collмтрs) {
             switch ($keyType) {
                 case TableMap::TYPE_CAMELNAME:
                     $key = '�трs';
                     break;
                 case TableMap::TYPE_FIELDNAME:
                     $key = 'МТРs';
                     break;
                 default:
                     $key = 'мтрs';
             }
             $result[$key] = $this->collмтрs->toArray(null, false, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects);
         }
         if (null !== $this->collмобилизацияs) {
             switch ($keyType) {
                 case TableMap::TYPE_CAMELNAME:
                     $key = '�обилизацияs';
                     break;
                 case TableMap::TYPE_FIELDNAME:
                     $key = 'Мобилизацияs';
                     break;
                 default:
                     $key = 'мобилизацияs';
             }
             $result[$key] = $this->collмобилизацияs->toArray(null, false, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects);
         }
         if (null !== $this->collмобилизацияпомесяцамs) {
             switch ($keyType) {
                 case TableMap::TYPE_CAMELNAME:
                     $key = '�обилизацияпомесяцамs';
                     break;
                 case TableMap::TYPE_FIELDNAME:
                     $key = 'Мобилизация_по_месяцамs';
                     break;
                 default:
                     $key = 'мобилизацияпомесяцамs';
             }
             $result[$key] = $this->collмобилизацияпомесяцамs->toArray(null, false, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects);
         }
         if (null !== $this->collПредписанияsRelatedByдатавыдачи) {
             switch ($keyType) {
                 case TableMap::TYPE_CAMELNAME:
                     $key = '�редписанияs';
                     break;
                 case TableMap::TYPE_FIELDNAME:
                     $key = 'Предписанияs';
                     break;
                 default:
                     $key = 'Предписанияs';
             }
             $result[$key] = $this->collПредписанияsRelatedByдатавыдачи->toArray(null, false, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects);
         }
         if (null !== $this->collПредписанияsRelatedByплановаядатаустранения) {
             switch ($keyType) {
                 case TableMap::TYPE_CAMELNAME:
                     $key = '�редписанияs';
                     break;
                 case TableMap::TYPE_FIELDNAME:
                     $key = 'Предписанияs';
                     break;
                 default:
                     $key = 'Предписанияs';
             }
             $result[$key] = $this->collПредписанияsRelatedByплановаядатаустранения->toArray(null, false, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects);
         }
         if (null !== $this->collПредписанияsRelatedByфактическаядатаустранения) {
             switch ($keyType) {
                 case TableMap::TYPE_CAMELNAME:
                     $key = '�редписанияs';
                     break;
                 case TableMap::TYPE_FIELDNAME:
                     $key = 'Предписанияs';
                     break;
                 default:
                     $key = 'Предписанияs';
             }
             $result[$key] = $this->collПредписанияsRelatedByфактическаядатаустранения->toArray(null, false, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects);
         }
         if (null !== $this->collфизическиеобъёмыs) {
             switch ($keyType) {
                 case TableMap::TYPE_CAMELNAME:
                     $key = '�изическиеобъёмыs';
                     break;
                 case TableMap::TYPE_FIELDNAME:
                     $key = 'Физические_объёмыs';
                     break;
                 default:
                     $key = 'физическиеобъёмыs';
             }
             $result[$key] = $this->collфизическиеобъёмыs->toArray(null, false, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects);
         }
     }
     return $result;
 }