From: Andrey Kutejko Date: Sun, 30 Jun 2013 21:28:57 +0000 (+0300) Subject: more human readable default method __toString in record X-Git-Tag: 0.5~196 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=c23e86f4d82319d37446936134fbe2a8ee2b769d;p=ipf.git more human readable default method __toString in record --- diff --git a/ipf/orm/record.php b/ipf/orm/record.php index 7c366c4..298e769 100644 --- a/ipf/orm/record.php +++ b/ipf/orm/record.php @@ -1259,7 +1259,7 @@ abstract class IPF_ORM_Record extends IPF_ORM_Record_Abstract implements Countab public function __toString() { - return (string) $this->_oid; + return sprintf('<%s #%d>', get_class($this), $this->_oid); } public function ModelAdmin()