protected function formatObject(&$oObj)
    {
        //  Ints
        $oObj->ref = $oObj->ref ? (int) $oObj->ref : null;

        //  Type
        $temp = $this->getTypeBySlug($oObj->type);

        if (empty($temp)) {

            $temp              = new \stdClass();
            $temp->slug        = $oObj->type;
            $temp->label       = '';
            $temp->description = '';
            $temp->hooks       = [];
        }

        $oObj->type = $temp;

        //  Data
        $oObj->data = json_decode($oObj->data);

        //  User
        $oObj->user              = new \stdClass();
        $oObj->user->id          = $oObj->created_by;
        $oObj->user->email       = $oObj->email;
        $oObj->user->first_name  = $oObj->first_name;
        $oObj->user->last_name   = $oObj->last_name;
        $oObj->user->profile_img = $oObj->profile_img;
        $oObj->user->gender      = $oObj->gender;

        unset($oObj->created_by);
        unset($oObj->email);
        unset($oObj->first_name);
        unset($oObj->last_name);
        unset($oObj->profile_img);
        unset($oObj->gender);
    }