Changes between Version 5 and Version 6 of modelGeneration

Show
Ignore:
Timestamp:
11/04/08 17:15:31 (1 year ago)
Author:
malko (IP: 217.128.159.36)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • modelGeneration

    v5 v6  
    6666user@host$ php createModels.php 
    6767}}} 
     68 
     69The script will create 6 files in the models directory:  
     70 - 3 '''BASE''' classes that contains the default methods of extended models, and thoose are the files we will eventually update if a newer version is out. 
     71  - BASE_posts.php 
     72  - BASE_tags.php 
     73  - BASE_users.php 
     74 - 3 '''extended''' classes that contains our final classes. Thoose are the files we will eventually edit to sweet our needs. We won't update thooses files if a newer version of abstractModels is out.[[BR]] 
     75   each one of thoose files also contains an extended modelCollection corresponding to the models they handle. This permitt us to define specific collection methods for particular modelCollections. 
     76  - posts.php 
     77  - tags.php 
     78  - users.php 
     79 
     80So if we want to redefine relationships between models or set filters or anything else we will edit the '''extended''' files.