protected function afterDuplicate(&$duplicate) { if (!$duplicate->isNew) { $stmt = $duplicate->participants; if (!$stmt->rowCount()) { $this->duplicateRelation('participants', $duplicate); } if ($duplicate->isRecurring() && $this->isRecurring()) { $this->duplicateRelation('exceptions', $duplicate); } if ($duplicate->is_organizer) { $this->duplicateRelation('resources', $duplicate, array('status' => self::STATUS_NEEDS_ACTION)); } } return parent::afterDuplicate($duplicate); }
protected function afterDuplicate(&$duplicate) { // $this->duplicateRelation('_fieldsUnsorted', $duplicate); // $this->duplicateRelation('fields', $duplicate); $this->duplicateRelation('_fieldsSortedById', $duplicate); return parent::afterDuplicate($duplicate); }
protected function afterDuplicate(&$duplicate) { $this->duplicateRelation('selectOptions', $duplicate); $this->duplicateRelation('treeOptions', $duplicate); return parent::afterDuplicate($duplicate); }