diff --git a/core/MY_Model.php b/core/MY_Model.php index 05add98..9fe6652 100644 --- a/core/MY_Model.php +++ b/core/MY_Model.php @@ -430,7 +430,7 @@ public function with($relationship) if (!in_array('relate', $this->after_get)) { - $this->after_get[] = 'relate'; + array_unshift($this->after_get, 'relate'); } return $this;