I am new to CakePHP and building my first web project for customer service request. I have following tables in database...
- customers
- customer_addresses
- customer_service_requests
- service_requests
service_requests table has foreign keys:
- customer_id
- customer_address_id
While baking MVC for service request, I'm getting following errors
Error: Table customers_addresses for model CustomerAddress was not found in datasource default.
The ServiceRequest model has a belongsTo relation as
'CustomerAddress' => arrray(
'className' => 'CustomerAddress',
'foreignKey' => 'customer_address_id',
'conditions' => ' ',
'fields' => ' ',
'order' => ' '
)
cakephp version : 2.7.8