dkubb changed the topic of #datamapper to: Datamapper v1.2.0 | Mailing List: http://is.gd/aa9D | Logs: http://is.gd/qWAL7V | DataMapper 2 Renamed to ROM, see #rom-rb for development
siel has quit [Ping timeout: 246 seconds]
siel has joined #datamapper
tillsc1 has joined #datamapper
tillsc has quit [Ping timeout: 246 seconds]
rsim has joined #datamapper
rsim has quit [Ping timeout: 248 seconds]
tillsc1 has quit [Quit: Leaving.]
postmodern has quit [Quit: Leaving]
rsim has joined #datamapper
skade has joined #datamapper
tillsc has joined #datamapper
skade has quit [Quit: Computer has gone to sleep.]
skade has joined #datamapper
tillsc has quit [Quit: Leaving.]
tillsc has joined #datamapper
tillsc has quit [Client Quit]
rsim has quit [Ping timeout: 248 seconds]
rsim1 has joined #datamapper
skade has quit [Quit: Computer has gone to sleep.]
mikecmpbll has joined #datamapper
skade has joined #datamapper
rsim has joined #datamapper
skade has quit [Quit: Computer has gone to sleep.]
rsim1 has quit [Ping timeout: 248 seconds]
skade has joined #datamapper
mikecmpbll has quit [Read error: Connection reset by peer]
mikecmpbll has joined #datamapper
mikecmpbll has quit [Ping timeout: 250 seconds]
postmodern has joined #datamapper
Darkwater has joined #datamapper
<Darkwater> hey, I'm having trouble making queries with associations
<onewheelskyward> how so?
<Darkwater> I have Attendee, Event and EventAttendee to link them; it's a many-to-many relation
<Darkwater> but I can't find the right way to select all events related to a specific attendee
<onewheelskyward> novaember, that's a new one.
<Darkwater> that's just my vps
<onewheelskyward> interesting, I've never done via.
<onewheelskyward> I was thinking your Attendee needs through: for eventattendee
<Darkwater> actually hang on, I might be doing something else wrong
<Darkwater> ah right, that might be the issue
<onewheelskyward> You've read through this? http://datamapper.org/docs/associations.html
<Darkwater> wait, maybe that line shoudn't be there
<Darkwater> I did
<onewheelskyward> cool.
<Darkwater> though not fully
<Darkwater> I'll take a closer look
<Darkwater> probably just either defined or saved them wrong
<Darkwater> the event_attendees table in the db is empty
<Darkwater> actually, the events table is empty, what even
<Darkwater> tbh I'm not even sure about the relation they should have
<Darkwater> I just want to assign events to attendees, but events are typically shared between attendees
<onewheelskyward> Can one attendee attend the same event more than once?
<onewheelskyward> Actually I take that back. I understand the model.
<onewheelskyward> An event is created, an attendee is instantiated.
<onewheelskyward> The attendee can attend multiple events, and the event will have multiple attendees (hopefully).
<onewheelskyward> I think the "has n, :through (or One-To-Many-Through)" is the right model to copy
mikecmpbll has joined #datamapper
<Darkwater> success! \o/
<Darkwater> now I forgot why doing this was necessary
<Darkwater> oh right, it didn't work at all at first lol
<onewheelskyward> haha
<Darkwater> yay, server side of my app should be done for now
<Darkwater> time to head home and have a drink o/
<onewheelskyward> Bam. Glad you got a quick resolution.
<Darkwater> ..I lied as I wanted to get rid of it
<Darkwater> yay programming
<Darkwater> fuck cachjng
<Darkwater> caching
rsim has quit [Quit: Leaving.]
postmodern has quit [Quit: Leaving]
<Darkwater> well, I put event.save in a call to p earlier to debug something
<Darkwater> but then I removed the p call
<Darkwater> which meant events weren't getting saved ;-;
postmodern has joined #datamapper
skade has quit [Quit: Computer has gone to sleep.]
mikecmpbll has quit [Quit: i've nodded off.]