# Activerecord limitation ? (advanced)

**URL:** <https://www.ruby-forum.com/t/activerecord-limitation-advanced/111060>\
**Category:** Rails\
**Created:** [August 2, 2007, 8:50am UTC](https://www.ruby-forum.com/t/activerecord-limitation-advanced/111060 "2007-08-02T08:50:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nigel.bris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e95f7d/32.png) [@nigel.bris](https://www.ruby-forum.com/u/nigel.bris)\
**Post date:** [August 2, 2007, 8:50am UTC](https://www.ruby-forum.com/t/activerecord-limitation-advanced/111060/1 "2007-08-02T08:50:11Z")

</div>

Or is it ?

Form FormType FormTypeItem

* * *

* * *

| id | -\> | id | \<- |

| id |
| --- |

* * *

|form\_type\_id | - | name | - | form\_type\_id |

* * *

* * *

```
                                                   |

```

title |

* * *

Need to be able to :-

@search =  
Form.find(:all, :include=\>[:form\_type, :form\_type\_items],  
:conditions=\>…)

I need in the Form model a :form\_type\_items, the question is, what is  
the relationship type?

Current Models:-  
Form  
belongs\_to :form\_type

FormType  
has\_many :form\_types  
has\_many :form\_type\_items

FormTypeItem  
Belongs\_to :form\_type
