Re: Velocity EOGenerator - possible bug with flattened relationships

From: Cornelius Jaeger (cjaege..isualfood.ch)
Date: Wed Nov 21 2007 - 11:53:45 EST

  • Next message: Mike Schrag: "Re: Velocity EOGenerator - possible bug with flattened relationships"

    mike

    On Nov 21, 2007, at 2:09 PM, Mike Schrag wrote:

    >> #if ($relationship.flattened)
    >> //flattened
    >> #end
    >>
    >> construct is not respected.
    >> is it derived from the model structure or stored in userInfo?
    >>
    > Not sure I follow ... You're saying that a relationship that is
    > flattened does not return true from relationship.flattened in your
    > template? That's very strange ... I don't know offhand why that
    > would NOT work. isFlattened returns true if
    > relationship.getDefinition() "looks like" a keypath.

    actually, the join object keypath is generated in addition to the
    flattened relationship.
    so for User <->> adminGroupUsers <<-> AdminGroup
    i get adminGroupUsers mutators generated, even though it's part of a
    flattened relationship.

    cheers

    cornelius

    >
    >
    > ms



    This archive was generated by hypermail 2.0.0 : Wed Nov 21 2007 - 16:38:16 EST