public static function createFromSQLWithLanguage($db_field)
 {
     if (!empty($db_field)) {
         $item = GameItemCategory::createFromSQL($db_field);
         if (!empty($item)) {
             $itemLang = new GameItemCategoryLanguage();
             $itemLang->setCategoryCode($item->getCategoryCode());
             if (isset($db_field["langCode"])) {
                 $itemLang->setLanguage($db_field["langCode"]);
             }
             if (isset($db_field["langText"])) {
                 $itemLang->setText($db_field["langText"]);
             }
             if (empty($item->languages)) {
                 $item->languages = array();
             }
             array_push($item->languages, $itemLang);
             return $item;
         }
     }
     return null;
 }
 /**
  * get single GameItemCategoryLanguage instance from a DOMElement
  *
  * @param DOMElement $node
  * @return GameItemCategoryLanguage
  */
 public static function fromDOMElement(DOMElement $node)
 {
     $o = new GameItemCategoryLanguage();
     $o->assignByHash(self::domNodeToHash($node, self::$FIELD_NAMES, self::$DEFAULT_VALUES, self::$FIELD_TYPES));
     $o->notifyPristine();
     return $o;
 }