The "counterpart" is for defining a has-one relationship.
You use it for many-to-many relationships (Example from the wiki):
BookReview:
tableName: book_reviews
columns:
review: string #no length param will default to max size allowed
by db
reviewed_book_id:
foreignClass: Publication
localName: reviewers
counterpart: reviewers_id # counterpart is used for a hasOne
relationship
reviewers_id:
foreignClass: User
localName: reviewed_books
counterpart: reviewed_book_id # see above counterpart
On 10 Aug., 12:32, gimler <[EMAIL PROTECTED]> wrote:
> ok thanks another question is:
>
> what is the counterpart?
>
> greetings
> Gordon
>
> On 10 Aug., 12:28, Sebastian Schulze <[EMAIL PROTECTED]> wrote:
>
> > > 1. how can i define a lognvarchar or text field?
> > > # description:
> > > # type: ???
>
> > This depends on the length you supply.
> > e.g.
> > type: string(250)
> > creates a VARCHAR(250)
>
> > type: string
> > creates a TEXT Field
>
> > sorry, got now answer to your second question...
> > Sebastian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" 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/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---