public function getDisorderSectionComment($section) { foreach ($this->cvi_disorder_section_comments as $comment) { if ($section->id == $comment->ophcocvi_clinicinfo_disorder_section_id) { return $comment; } } }