/** * @todo TODO: I *really* hate how we have to do the store() twice when we * create the project.. it's all because the stupid project_original_parent * has to equal its own project_id if this is a root project. Ugh. */ protected function hook_postCreate() { if (0 == $this->project_parent || 0 == $this->project_original_parent) { $this->project_parent = $this->project_id; $this->project_original_parent = $this->project_id; parent::store(); } parent::hook_postCreate(); }
protected function hook_postCreate() { if ($this->task_parent) { // importing tasks do not update dynamics $this->importing_tasks = true; } parent::hook_postCreate(); }