Ok, thank you booth. So I will create an extra modell. On 10 Jul., 14:27, Richard Conroy <[email protected]> wrote: > On Fri, Jul 9, 2010 at 5:52 AM, DSpaeth <[email protected]> wrote: > > > My join table is named a_b_table. When I use > > > has n, :as, :through => Resource > > > DataMapper look's for a table named "a_bs" . > > I tried :through => :a_b_table, but it > > doesn't work. > > > With ActiveRecord I can use :join_table => 'a_b_table' > > to override ActiveRecord default nameing convention. > > > The only way to solve this issue with DataMapper was to > > define a model ABTable. > > > Have I misunderstood you? How can I get rid of the third model? > > My understanding of DataMapper, is that the Model is necessary. > > I dont know if it is possible to override the naming convention when you > are using the Anonymous syntax. > > --http://richardconroy.blogspot.com
-- You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.
