* Load model.

This commit is contained in:
sunguangming
2024-05-17 16:34:13 +08:00
parent 9d0cf45cd2
commit afb2bb4889
+3
View File
@@ -3050,6 +3050,9 @@ class execution extends control
*/
public function treeStory(int $storyID, int $version = 0)
{
$this->loadModel('requirement');
$this->loadModel('epic');
$story = $this->loadModel('story')->getById($storyID, $version, true);
$product = $this->dao->findById($story->product)->from(TABLE_PRODUCT)->fields('name, id, `type`, shadow')->fetch();