override belongto parent appmodel cakephp
// ------------------------------------------------------------- // ------------ Override belongto parent appmodel -------------- // ------------------------------------------------------------- public function __construct($id = false, $table = null, $ds = null) { $parent = get_parent_class($this); $this->_mergeVars(array('belongsTo'), $parent); // override belongto parent appmodel parent::__construct($id, $table, $ds); }