1. Jon Langevin
  2. ActiveDocument

Commits

Jon Langevin  committed f362fa4

Updated phpdoc comments and added some additional verbosity to base Object class, for store(), delete(), reload() methods.

  • Participants
  • Parent commits ef0beed
  • Branches default

Comments (0)

Files changed (1)

File Object.php

View file
  • Ignore whitespace
 use \Yii,
 \CComponent;
 
+/**
+ * @property mixed|null $key
+ */
 abstract class Object extends \CComponent {
 
     /**
     protected $_container;
 
     /**
-     * @var string
+     * @var mixed
      */
     private $_key;
 
      */
     public function store() {
         if ($this->getConnection()->enableProfiling) {
-            $profileToken = 'ext.activedocument.execute.storeObject(Storing object with key: "'.$this->getKey().'")';
+            $profileToken = 'ext.activedocument.execute.storeObject(Storing object with key: '.\CVarDumper::dumpAsString($this->getKey()).')';
             Yii::beginProfile($profileToken, 'ext.activedocument.execute.storeObject');
         }
 
      */
     public function delete() {
         if ($this->getConnection()->enableProfiling) {
-            $profileToken = 'ext.activedocument.execute.deleteObject(Deleting object with key: "'.$this->getKey().'")';
+            $profileToken = 'ext.activedocument.execute.deleteObject(Deleting object with key: '.\CVarDumper::dumpAsString($this->getKey()).')';
             Yii::beginProfile($profileToken, 'ext.activedocument.execute.deleteObject');
         }
 
      */
     public function reload() {
         if ($this->getConnection()->enableProfiling) {
-            $profileToken = 'ext.activedocument.query.reloadObject(Reloading object with key: "'.$this->getKey().'")';
+            $profileToken = 'ext.activedocument.query.reloadObject(Reloading object with key: '.\CVarDumper::dumpAsString($this->getKey()).')';
             Yii::beginProfile($profileToken, 'ext.activedocument.query.reloadObject');
         }