public function setEntity($entity) { trigger_error(__METHOD__ . ' is deprecated, change Statement object itself.', E_USER_DEPRECATED); $this->__construct($entity, $this->arguments); return $this; }