Exception: Call to undefined method stdClass::loadData()