Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can a model have multiple tables in CakePHP?

Tags:

php

cakephp

Can a model have multiple tables in CakePHP?

like image 330
Angeline Avatar asked Apr 03 '09 12:04

Angeline


1 Answers

Guessing from this sentence in the manual:

A model is generally an access point to the database, and more specifically, to a certain table in the database. By default, each model uses the table who's name is plural of its own, i.e. a 'User' model uses the 'users' table.

I don't think so, but you can make relationships maybe thats what you need.

Check this

like image 148
MrHus Avatar answered Sep 19 '22 06:09

MrHus