[eluser]OverZealous[/eluser]
[quote author="Daniel H" date="1253224385"]Is it at all possible to load all an object's related 'has one' objects on an ad hoc basis, instead of specifying it in the config?[/quote]
Yes, you call get() on each of the objects you want to load. :-)
If you have a lot of them, throw'em in a function on the model itself. If you want to load them when you run a query, make a custom getter that looks like this:
Code:
function get_autoload($limit = '', $start = '') {
$this->get($limit, $start);
$this->load_has_ones();
foreach($this->all as $item) {
$item->load_has_ones();
}
}
function load_has_ones() {
foreach($this->has_one as $key => $v) {
$this->{$key}->get();
}
}
You really should load objects manually, anyway, otherwise you'll end up loading unnecessary information all the time.
I also saw your previous comment a while ago, but I forgot about it. The short version is that I would assume there either is a bug in HTMLForm or Array, or your models are misconfigured.
I don't have time right now to work on the extensions, but if you feel like debugging it some more, I'll happily apply a fix.