Speaking with Banks, it seems reasonable there should be a way to access the foreign key value directly from a relationship field such as Field_BelongsTo.
Allowing this cuts out the redundant necessity of also creating, for instance, user_id (Field_Integer).
This also makes building forms with already existing data much simpler.
As far as syntax goes, I'm a bit at a loss. Perhaps something like $post->user->get(':foreign') or $post->user->get('value');
Again, I'm not sure about the syntax at all, but the functionality would be very nice.
Speaking with Banks, it seems reasonable there should be a way to access the foreign key value directly from a relationship field such as Field_BelongsTo.
Allowing this cuts out the redundant necessity of also creating, for instance, user_id (Field_Integer).
This also makes building forms with already existing data much simpler.
As far as syntax goes, I'm a bit at a loss. Perhaps something like $post->user->get(':foreign') or $post->user->get('value');
Again, I'm not sure about the syntax at all, but the functionality would be very nice.