On 5/22/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
one thing i really like about AR is the association proxies, where relationships themselves are objects you can call methods (ie, find) onclass User < ActiveRecord::Base has_many :items end class Item < ActiveRecord::Base belongs_to :user end items = user.items item = user.items.find(params[:id]) new_item = user.items.create!(params[:item]) you can get close to that with RDBO's $user->find_items() (and maybe DBIC has something similarish) but the ruby way here feels so much better!
"ruby way"? That's exactly how DBIC works. -- Eden Cardim Instituto Baiano de Biotecnologia Núcleo de Biologia Computacional e Gestão de Informações Biotecnológicas Laboratório de Bioinformática _______________________________________________ List: [email protected] Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
