本文整理汇总了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());
}
}
示例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());
}
}
示例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);
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}
示例7: updateDefaultsFromObject
public function updateDefaultsFromObject()
{
parent::updateDefaultsFromObject();
if (isset($this->widgetSchema['petition_signing_list'])) {
$this->setDefault('petition_signing_list', $this->object->PetitionSigning->getPrimaryKeys());
}
}
示例8: updateDefaultsFromObject
public function updateDefaultsFromObject()
{
parent::updateDefaultsFromObject();
if (isset($this->widgetSchema['tipoingrediente_list'])) {
$this->setDefault('tipoingrediente_list', $this->object->Tipoingrediente->getPrimaryKeys());
}
}
示例9: updateDefaultsFromObject
public function updateDefaultsFromObject()
{
parent::updateDefaultsFromObject();
if (isset($this->widgetSchema['kernbegrip_list'])) {
$this->setDefault('kernbegrip_list', $this->object->Kernbegrip->getPrimaryKeys());
}
}
示例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());
}
}
示例11: updateDefaultsFromObject
public function updateDefaultsFromObject()
{
parent::updateDefaultsFromObject();
if (isset($this->widgetSchema['media_items_list'])) {
$this->setDefault('media_items_list', $this->object->MediaItems->getPrimaryKeys());
}
}
示例12: updateDefaultsFromObject
public function updateDefaultsFromObject()
{
parent::updateDefaultsFromObject();
if (isset($this->widgetSchema['jobeet_affiliates_list'])) {
$this->setDefault('jobeet_affiliates_list', $this->object->JobeetAffiliates->getPrimaryKeys());
}
}
示例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()));
}
}
示例14: updateDefaultsFromObject
public function updateDefaultsFromObject()
{
parent::updateDefaultsFromObject();
if (isset($this->widgetSchema['organization_list'])) {
$this->setDefault('organization_list', $this->object->Organization->getPrimaryKeys());
}
}
示例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());
}
}