Ejemplo n.º 1
0
 public function fork($from_project_id, $new_input)
 {
     $section = new ProjectSection(array('section_category' => $this->category, 'title' => $this->title, 'body' => $this->body, 'based_on_project_section_id' => $this->id, 'created_by_project_id' => $from_project_id));
     $section->fill($new_input);
     $section->save();
     $section->project_types()->sync($this->project_types()->lists('id'));
     return $section;
 }