Why there is no hasOne relationship in castle activerecord in contrast to Ruby on Rails?

StackOverflow https://stackoverflow.com/questions/367495

  •  21-08-2019
  •  | 
  •  

Question

or how can i represent an address to country mapping where an address has one one country in castle activerecord?

Was it helpful?

Solution

The [BelongsTo] attribute is there for one-to-one relations.

http://api.castleproject.org/html/T_Castle_ActiveRecord_BelongsToAttribute.htm

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top