Sen var_dump kullanabilir veya print_r sizin modelleri neye benzediğini görmek için. Hızlı bir şekilde, tüm modeller için bunu yapmak değiştirmek istiyorsanız AppModel zaman her model yükler bu yapıya dökümü var.
class AppModel extends Model {
function __construct($id = false, $table = null, $ds = null) {
parent::__construct($id, $table, $ds);
$this->log("Model [{$this->name}] belongsTo = " . print_r($this->belongsTo, true), LOG_DEBUG);
$this->log("Model [{$this->name}] hasOne = " . print_r($this->hasOne, true), LOG_DEBUG);
$this->log("Model [{$this->name}] hasMany = " . print_r($this->hasMany, true), LOG_DEBUG);
$this->log("Model [{$this->name}] hasAndBelongsToMany = " . print_r($this->hasAndBelongsToMany, true), LOG_DEBUG);
}
}