> On 5/22/07, Adam Bartosik <[EMAIL PROTECTED]> wrote:
> I doubt there's anything worth porting in ActiveRecord that one of the
> many Perl options (DBIx::Class, Rose::DB::Object, Class::DBI, Tangram,
> Alzabo) doesn't provide.
>
> - Perrin
one thing i really like about AR is the association proxies, where
relationships themselves are objects you can call methods (ie, find) on
class 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!
_______________________________________________
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/