| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
Association --+
|
BelongsTo
Builds the association scope for a belongs association.
See the Association class for more details on how associations
work.
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
| Properties | |
| foreign_key | |
|
Inherited from |
|
| Method Details |
|
|
|
|
|
Returns a scope on the source class containing this association Builds conditions on top of the base_scope generated from any finder options set with the association:
belongs_to('foo', foreign_key='foo_id')
In addition to any finder options included with the association options the following scope will be added:
where('id = %s' % target['foo_id'])
|
| Property Details |
foreign_key
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Thu Jun 30 17:41:50 2011 | http://epydoc.sourceforge.net |