Perfect sense.  I must have skimmed the Elixir docs too fast to notice
that.

As a quick help, it might make sense on
http://elixir.ematia.de/module-elixir.relationships.html
 to turn the phrase
"the keyword arguments inherited from SQLAlchemy's relation function"
into a link to
http://www.sqlalchemy.org/docs/04/sqlalchemy_orm.html#docstrings_sqlalchemy.orm_modfunc_relation

In addition, it might make sense to add a note like (sorry, I'm not an
expert, so you may want to clean up the text):

If the belongs_to() refers to the same table as a has_...(), the two
tables will refer to each other, creating a circular reference.  When
you update objects on both tables in a single transaction, you will
get a CircularDependencyError.  To avoid this, create the belongs_to()
with use_alter=True, post_update=True.

All of this makes sense, but the tricky part as a new user is knowing
which docs too look in.  I started with Elixir and am learning SA as-
needed.

Thank you again

On Oct 10, 11:28 pm, "Gaetan de Menten" <[EMAIL PROTECTED]> wrote:
> On 10/10/07, n-org <[EMAIL PROTECTED]> wrote:
>
>
>
> > That solves it.
>
> > I assume that means I can use any of those SA parameters in an Elixir
> > declaration (very useful).
>
> Yes, mostly. You can use all SA parameters which don't use column
> objects as argument. In fact, all parameters that are not handled
> explicitely by Elixir are forwarded to SA, but those which ask a
> column object must be translated by Elixir or they won't work. Some of
> those arguments are translated (order_by, primary_key mapper argument,
> ...), and in that case are documented in Elixir proper.
>
> Does this make any sense to you? (this is a really important point and
> I'd like people to understand it).
>
> --
> Gaƫtan de Mentenhttp://openhex.org


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SQLElixir" 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/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to