Hi! I probably have a (Understanding-) Problem with sfDoctrine:
I want to get all the documents, of one user.

$this->getUser()->getGuardUser()->getUserDocuments()->get(10)

This works, but not as I expected. It doesn't give me the Document
with the id 10 (if its linked to the user),
but the 10th document that is linked to the user.
According to the Doctrine-Api it "returns a record for given key".

Is this behaviour correct?
I would appreciate any help - thanks a lot! :)

Sebastian

=====================
My YAML:
Document:
  tableName: document
  columns:
** snip **
    user:
      foreignClass: sfGuardUser
      foreignName: User
      localName: UserDocuments
      required: true
      foreignReference:       id
** snap **


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to