Yii Framework Forum: ActiveRecord architecture - Yii Framework Forum

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

ActiveRecord architecture Some thoughts for "version 2.0" of AR Rate Topic: -----

#21 User is offline   veris 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 21
  • Joined: 03-July 09
  • Location:POLAND

Posted 02 July 2010 - 05:10 PM

Look at my reply. It's a general one but may be of help here.
http://www.yiiframew...dpost__p__50207
I feel like we are on the good track until someone says we're breaking mvc concept :lol:
Just kidding. :rolleyes:
I like your ideas! For me the thing is that i lack the knowledge of some of yii's internals and concepts so for now i will manage all things in one place by extending AR class.
Then i'll look what comes up and what can be put into a separate class/layer.
I'll keep it simple, small and quickly configurable.

So conclusions:
1. Data Integrity Layer will be in internally configurable and implemented by overriding __set and __get methods.
2. Data Validation Layer stays untouched. We have scenarios and validate() method.
Zbigniew Gralewski
0

Share this topic:


  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users