How do I have more than one belongsTo for a model?
e.g.
<?php
class Appointment extends AppModel
{
var $name = 'Appointment';
var $useTable = 'appointments';
var $belongsTo = 'Client','Doctor';
}
?>
Which breaks the app…
As appointments belong to both a Client and a Doctor and clients can have many appointments and doctors many appointments (these associations work fine, it’s just the belongsTo that isn’t working)
try this
it’s called array. more about arrays in documentation