当前位置: 首页>>代码示例>>PHP>>正文


PHP BaseFormDoctrine::updateDefaultsFromObject方法代码示例

本文整理汇总了PHP中BaseFormDoctrine::updateDefaultsFromObject方法的典型用法代码示例。如果您正苦于以下问题:PHP BaseFormDoctrine::updateDefaultsFromObject方法的具体用法?PHP BaseFormDoctrine::updateDefaultsFromObject怎么用?PHP BaseFormDoctrine::updateDefaultsFromObject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BaseFormDoctrine的用法示例。


在下文中一共展示了BaseFormDoctrine::updateDefaultsFromObject方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: updateDefaultsFromObject

 public function updateDefaultsFromObject()
 {
     parent::updateDefaultsFromObject();
     if (isset($this->widgetSchema['rel_structures_matfinss_list'])) {
         $this->setDefault('rel_structures_matfinss_list', $this->object->RelStructuresMatfinss->getPrimaryKeys());
     }
 }
开发者ID:njch,项目名称:PatBati,代码行数:7,代码来源:BaseStructuresForm.class.php

示例2: updateDefaultsFromObject

  public function updateDefaultsFromObject()
  {
    parent::updateDefaultsFromObject();

    if (isset($this->widgetSchema['groups_list']))
    {
      $this->setDefault('groups_list', $this->object->Groups->getPrimaryKeys());
    }

    if (isset($this->widgetSchema['permissions_list']))
    {
      $this->setDefault('permissions_list', $this->object->Permissions->getPrimaryKeys());
    }

    if (isset($this->widgetSchema['proyectos_list']))
    {
      $this->setDefault('proyectos_list', $this->object->Proyectos->getPrimaryKeys());
    }

    if (isset($this->widgetSchema['versiones_list']))
    {
      $this->setDefault('versiones_list', $this->object->Versiones->getPrimaryKeys());
    }

  }
开发者ID:nhpatt,项目名称:gestor-de-estados,代码行数:25,代码来源:BasesfGuardUserForm.class.php

示例3: updateDefaultsFromObject

 public function updateDefaultsFromObject()
 {
     parent::updateDefaultsFromObject();
     if (isset($this->widgetSchema['ls_list_list'])) {
         $values = array();
         foreach ($this->object->LsList as $obj) {
             $values[] = current($obj->identifier());
         }
         $this->object->clearRelated('LsList');
         $this->setDefault('ls_list_list', $values);
     }
     if (isset($this->widgetSchema['industry_list'])) {
         $values = array();
         foreach ($this->object->Industry as $obj) {
             $values[] = current($obj->identifier());
         }
         $this->object->clearRelated('Industry');
         $this->setDefault('industry_list', $values);
     }
     if (isset($this->widgetSchema['lobby_filing_list'])) {
         $values = array();
         foreach ($this->object->LobbyFiling as $obj) {
             $values[] = current($obj->identifier());
         }
         $this->object->clearRelated('LobbyFiling');
         $this->setDefault('lobby_filing_list', $values);
     }
 }
开发者ID:silky,项目名称:littlesis,代码行数:28,代码来源:BaseEntityForm.class.php

示例4: updateDefaultsFromObject

 public function updateDefaultsFromObject()
 {
     parent::updateDefaultsFromObject();
     if (isset($this->widgetSchema['sf_guard_user_profile_list'])) {
         $this->setDefault('sf_guard_user_profile_list', $this->object->sfGuardUserProfile->getPrimaryKeys());
     }
 }
开发者ID:limitium,项目名称:uberlov,代码行数:7,代码来源:BaseCommentForm.class.php

示例5: updateDefaultsFromObject

 public function updateDefaultsFromObject()
 {
     parent::updateDefaultsFromObject();
     if (isset($this->widgetSchema['sf_guard_permission_list'])) {
         $this->setDefault('sf_guard_permission_list', $this->object->sfGuardPermission->getPrimaryKeys());
     }
 }
开发者ID:nvieirafelipe,项目名称:graviola-project,代码行数:7,代码来源:BaseNjMenuItemRoutingForm.class.php

示例6: updateDefaultsFromObject

  public function updateDefaultsFromObject()
  {
    parent::updateDefaultsFromObject();

    if (isset($this->widgetSchema['dance_styles_list']))
    {
      $this->setDefault('dance_styles_list', $this->object->DanceStyles->getPrimaryKeys());
    }

    if (isset($this->widgetSchema['tracks_list']))
    {
      $this->setDefault('tracks_list', $this->object->Tracks->getPrimaryKeys());
    }

    if (isset($this->widgetSchema['classes_list']))
    {
      $this->setDefault('classes_list', $this->object->Classes->getPrimaryKeys());
    }

    if (isset($this->widgetSchema['lessons_list']))
    {
      $this->setDefault('lessons_list', $this->object->Lessons->getPrimaryKeys());
    }

  }
开发者ID:romankallweit,项目名称:swingmachine,代码行数:25,代码来源:BasedsTeacherForm.class.php

示例7: updateDefaultsFromObject

 public function updateDefaultsFromObject()
 {
     parent::updateDefaultsFromObject();
     if (isset($this->widgetSchema['petition_signing_list'])) {
         $this->setDefault('petition_signing_list', $this->object->PetitionSigning->getPrimaryKeys());
     }
 }
开发者ID:uniteddiversity,项目名称:policat,代码行数:7,代码来源:BaseContactForm.class.php

示例8: updateDefaultsFromObject

 public function updateDefaultsFromObject()
 {
     parent::updateDefaultsFromObject();
     if (isset($this->widgetSchema['tipoingrediente_list'])) {
         $this->setDefault('tipoingrediente_list', $this->object->Tipoingrediente->getPrimaryKeys());
     }
 }
开发者ID:BGCX067,项目名称:f2gsym-svn-to-git,代码行数:7,代码来源:BaseUsuarioForm.class.php

示例9: updateDefaultsFromObject

 public function updateDefaultsFromObject()
 {
     parent::updateDefaultsFromObject();
     if (isset($this->widgetSchema['kernbegrip_list'])) {
         $this->setDefault('kernbegrip_list', $this->object->Kernbegrip->getPrimaryKeys());
     }
 }
开发者ID:robinkanters,项目名称:dnsleergemeenschap,代码行数:7,代码来源:BaseleerlijnEindtermForm.class.php

示例10: updateDefaultsFromObject

 public function updateDefaultsFromObject()
 {
     parent::updateDefaultsFromObject();
     if (isset($this->widgetSchema['rel_matge_meos_list'])) {
         $this->setDefault('rel_matge_meos_list', $this->object->RelMatgeMeos->getPrimaryKeys());
     }
 }
开发者ID:njch,项目名称:PatBati,代码行数:7,代码来源:BaseBibMeoeuvreForm.class.php

示例11: updateDefaultsFromObject

 public function updateDefaultsFromObject()
 {
     parent::updateDefaultsFromObject();
     if (isset($this->widgetSchema['media_items_list'])) {
         $this->setDefault('media_items_list', $this->object->MediaItems->getPrimaryKeys());
     }
 }
开发者ID:blekkzor,项目名称:ap,代码行数:7,代码来源:BaseaSlotForm.class.php

示例12: updateDefaultsFromObject

 public function updateDefaultsFromObject()
 {
     parent::updateDefaultsFromObject();
     if (isset($this->widgetSchema['jobeet_affiliates_list'])) {
         $this->setDefault('jobeet_affiliates_list', $this->object->JobeetAffiliates->getPrimaryKeys());
     }
 }
开发者ID:AinhoaLM,项目名称:jobeet,代码行数:7,代码来源:BaseJobeetCategoryForm.class.php

示例13: updateDefaultsFromObject

 public function updateDefaultsFromObject()
 {
     parent::updateDefaultsFromObject();
     if (isset($this->widgetSchema['translation_list'])) {
         $this->setDefault('translation_list', array_merge((array) $this->getDefault('translation_list'), $this->object->Translation->getPrimaryKeys()));
     }
 }
开发者ID:theolymp,项目名称:diem,代码行数:7,代码来源:BaseDmAutoSeoForm.class.php

示例14: updateDefaultsFromObject

 public function updateDefaultsFromObject()
 {
     parent::updateDefaultsFromObject();
     if (isset($this->widgetSchema['organization_list'])) {
         $this->setDefault('organization_list', $this->object->Organization->getPrimaryKeys());
     }
 }
开发者ID:br00k,项目名称:yavom,代码行数:7,代码来源:BaseServiceForm.class.php

示例15: updateDefaultsFromObject

 public function updateDefaultsFromObject()
 {
     parent::updateDefaultsFromObject();
     if (isset($this->widgetSchema['rel_ident_perspectives_list'])) {
         $this->setDefault('rel_ident_perspectives_list', $this->object->RelIdentPerspectives->getPrimaryKeys());
     }
 }
开发者ID:njch,项目名称:PatBati,代码行数:7,代码来源:BaseBibPerspectiveForm.class.php


注:本文中的BaseFormDoctrine::updateDefaultsFromObject方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。