tetsunosukeのnotebook

tetsunosukeのメモです

[PHP] Zend_Model_Abstract?

メモ

http://karwin.blogspot.com/2008/05/activerecord-does-not-suck.html

A single Model class may be backed by a database table, or multiple database tables, or perhaps even no database tables. Data persistence should be an internal implementation detail within a Model; the external API of the Model class should reflect its logical OO requirements, not the physical database structure.

なんつーかZend Frameworkの標準的なディレクトリの構成にmodelとかいうのが入っていながら、Modelに関するクラスがないんですよね。そしたら、Zend_Model_Abstractとか作っておいて、Zend_Dbあたりはそれを実装するクラスの一つにすればいいんじゃないの?ってふと思ったんだけど...

と。あまり何も考えないで書いておくw