public function populate($result) { wc_deprecated_function('populate', '2.7', 'read'); $this->read($result->ID); }