Re: Random selection

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Sat Dec 20 2003 - 14:18:23 EST

  • Next message: Jim Menard: "Re: Random selection"

    On Dec 20, 2003, at 11:07 AM, Mike Kienenberger wrote:

    > You might also define a reverse to-one relationship from photo to
    > album,
    > then do a
    >
    > matchExp("photo.album", theAlbum)
    >
    > in which case you probably wouldn't need the primary key.

    IMO this is a preferred solution, there is no reason to use a PK
    directly. You simply need access to the album object and use in the
    qualifier. Though the expression would be more like

    matchExp("album", theAlbum)

    (or whatever the relationship name is).

    Andrus



    This archive was generated by hypermail 2.0.0 : Sat Dec 20 2003 - 14:18:27 EST