Arf! 1.0e-23 (That's 0.00...001) bits
Posted by Joe Rinehart at 9:50 PM
11 comments - Categories:
ColdFusion MX | Model-Glue | Arf!
Seems like a lot of people want to test this, so, well, here's what I've got so far. It's pretty rough at this point, documentation is sparse, and there's some missing functionality, but this is an improvement on the version I Camtasia demo'd.
http://clearsoftware.net/client/enclosures/net.zip
The most notable API change is that hasMany() and belongTo() only have one required parameter: the name of the CFC you're relating to. Arf! assumes the last part of its name (that "last part" of my.app.Widget is "Widget") is the tablename it's relating to, and that the foreign/primary keys involved are named WidgetId.
In other words, instead of:
It's just:
All of those assumptions can be overridden (as can table names, etc), but for now, you'll have to read some source to figure that out. Examples and docs will follow in time.
For now, feel free to e-mail me what breaks. Simeon Bateman is being kind enough to set up a Trac (trouble ticket) site for me, so I'll probably either fix what's broken, or e-mail you back asking you to fill out a ticket.
Cory Toth wrote on 11/01/05 11:26 PM
I know this is pre alpha, but i did catch something that you might want to take a look at.<cfdump var="#widgetCategory.list("","name DESC")#">
Will return and error because you are just checking if the argument is defined not if its defined and not empty.
Thanks for this excellent software.