I want to use the CakePHP method Model::find('threaded'), but in my MySQL table the parent key field father, and not parent_id- can I use it instead of this field name?
Model::find('threaded')
father
parent_id
In 2.1, you can pass an option parent; you may need the tree behavior applied to work.
parent
Prior to version 2.1, you can simply use virtual fields in your model:
public $virtualFields = array( 'parent_id' => 'Model.father' );