Imagine a user table. It will then generate the classes.
Code:
Doctrine::generateModelsFromDb('models', array('doctrine'), array('generateTableClasses' => true));
Code:
class User extends BaseUser
{
}
Then we generated a skeleton doctrine_Table
Code:
class UserTable extends Doctrine_Table
{
}
In the documentation it says that.
You can place custom functions inside the User and UserTable classes to customize the functionality of your models. Below are some examples:
I do not understand the difference between these two classes, what is the role of each of them and must contain?
Bookmarks