]> git.andy128k.dev Git - ipf.git/commitdiff
more human readable default method __toString in record
authorAndrey Kutejko <andy128k@gmail.com>
Sun, 30 Jun 2013 21:28:57 +0000 (00:28 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Sun, 30 Jun 2013 21:28:57 +0000 (00:28 +0300)
ipf/orm/record.php

index 7c366c4578c400fb6ecf67301e5997d34d3a4da1..298e7693f82ff3fe3b98f8b1ecb80236ec512bbc 100644 (file)
@@ -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()