Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Incomplete - task : Inverse

git-svn-id: https://mxunit.googlecode.com/svn/mxunit-cfmeetups@1769 f92dd5c0-c831-0410-92f9-1b6876b37263
  • Loading branch information...
commit 5d342b7a6084bfebb636dffda2ecc1a5b93a3ba0 1 parent 0e7bde5
marc.esher authored
View
4 CFObjective_ORMZen/code/d_one_to_many_deepdive_inverse/Attendance.cfc
@@ -1,10 +1,12 @@
component persistent="true" accessors="true" table="j_events_attendees"{
property name="id" fieldtype="id" generator="native";
+ property name="event" fieldtype="many-to-one" fkcolumn="EventID" cfc="Event";
+ //this is one side of the bidirectional relationship;
+ //the one-to-many attendances property in Attendee.cfc is the other side
property name="attendee" fieldtype="many-to-one" fkcolumn="AttendeeID" cfc="Attendee";
- property name="event" fieldtype="many-to-one" fkcolumn="EventID" cfc="Event";
property name="isVIP" type="boolean";
property name="signupDate" type="date";
Please sign in to comment.
Something went wrong with that request. Please try again.