Re: One to One relationships

midnightmonster | 3 years ago | parent

AFAIK, for now you just have to use HasMany one side and BelongsTo on the other. Probably wouldn't be crushingly difficult to implement HasOne.

You'd want to look in recess/recess/database/orm. There probably copy annotations/HasManyAnnotation.class.php and relationships/HasManyRelationship.class.php and make the needed changes.





Welcome KrisJordan!

Web: http://www.krisjordan.com/

Location: North Carolina

Edit Profile