Sorry I googled translate.
The Models files can be generated from the database with DooModelGen.
It is not an active record implementation, having table name and field names defined is a lot faster in performance than using inflector. And you might want a Model class name different from the table name.
The fields need to be defined again in _fields because you might have other properties in the Model class which are not a column in your DB. With fields as class property, you can have proper autohinting/auto complete in IDE such as NetBeans and you're prone to less typo errors
Notice that the basic Model class don't have to extend any parent class

(performance wise).
If you need extra features you can extend DooModel and you can have this code:
- Code: Select all
class User extends DooModel{
//... your code here.
}
$user = new User;
$user->id =24;
$user->find();
You can generate User model that extends DooModel with DooModelGen too.
Read in Russian
http://translate.google.com/translate?h ... 52%23p1552