propelorm/Propel — Issue #153: Relationship 1 to 1 expected, but understood 1 to Many
Author: meglio
Created: 2011-10-20 08:47:46+00:00
State: open

Tables:
notaries: id (PK)
users: id (PK)
notaries_owners: notary_id (PK, Foreign to notaries.id), user_id (UNIQUE, foreign to users.id)

Model User gets method getNotaryOwners() while actually only 1 record is possible from notaries_owners table with given user id, so I expect that relationship will be understood as 1to1 and singular method will be generated: getNotaryOwner().