예제 #1
0
파일: Event.php 프로젝트: ajaboa/crmpuan
 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);
 }
예제 #2
0
파일: Category.php 프로젝트: ajaboa/crmpuan
 protected function afterDuplicate(&$duplicate)
 {
     //		$this->duplicateRelation('_fieldsUnsorted', $duplicate);
     //		$this->duplicateRelation('fields', $duplicate);
     $this->duplicateRelation('_fieldsSortedById', $duplicate);
     return parent::afterDuplicate($duplicate);
 }
예제 #3
0
파일: Field.php 프로젝트: ajaboa/crmpuan
 protected function afterDuplicate(&$duplicate)
 {
     $this->duplicateRelation('selectOptions', $duplicate);
     $this->duplicateRelation('treeOptions', $duplicate);
     return parent::afterDuplicate($duplicate);
 }