[eluser]felix_[/eluser]
Hey,
i've got the following situation:
i have user and costunit as models.
a user can hav many costunits and a costunits can belong do many users.
Also the user has got a default_costunit
my code:
Code:
var $has_many = array("costunit");
var $has_one = array("default_costunit" => array( "class" => "costunit"));
my table users got the column "default_costunit_id" where the correct id is saved.
when i try:
Code:
$user->default_costunit->get();
my costunit is not loaded properly. all attributed are still empty.
did i oversaw something?
best regards
felix