コード例 #1
0
ファイル: Table.php プロジェクト: yao-dev/blog-mvc.github.io
 /**
  * Returns an array that can be used to describe the internal state of this
  * object.
  *
  * @return array
  */
 public function __debugInfo()
 {
     $conn = $this->connection();
     return ['registryAlias' => $this->registryAlias(), 'table' => $this->table(), 'alias' => $this->alias(), 'entityClass' => $this->entityClass(), 'associations' => $this->_associations->keys(), 'behaviors' => $this->_behaviors->loaded(), 'defaultConnection' => $this->defaultConnectionName(), 'connectionName' => $conn ? $conn->configName() : null];
 }