It seems that both options don't work in common:

dates = Table('dates', meta,
    Column('date', Date, primary_key=True)
)
mapper(MyDate, dates, column_prefix='_', properties=dict(
    date = synonym('_date'),
)

produces with 0.3.8:

ArgumentError: WARNING: column 'date' not being added due to property
'<sqlalchemy.orm.interfaces.SynonymProperty object at 0x8ec91ac>'.
Specify 'allow_column_override=True' to mapper() to ignore this
condition.

I don't want override. My underlying goal is to make MyDate readOnly.
As mapped attributes are already properties, it would be great to be
able to
'declare' the readonly behaviour in the mapper.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to