Hi Fred, On Thu, Jun 12, 2008 at 8:20 PM, Fred C <[EMAIL PROTECTED]> wrote: > I am trying to create a related join with a creation date. After digging on > google. I found an example looking a little bit like that.
Despite the example in the FAQ [1] it looks like this isn't directly supported by SQLObject at all. t.addArticle(...) goes straight to the .add(...) method on the underlying join object which bypasses the intermediate table class entirely and uses just the table and column names and the two IDs. It is how ever possible to get the desired effect if the underlying database allows it. For example, if using SQLite one can do: created = DateTimeCol(defaultSQL="CURRENT_TIMESTAMP") and then the database itself will add the necessary information when the row is created (and you can access this via ArticleTag instances as expected). [1] http://www.sqlobject.org/FAQ.html#how-can-i-define-my-own-intermediate-table-in-my-many-to-many-relationship Schiavo Simon ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss