protected static $_has_many = array( 'networks' => array( 'model_to' => '\\namespace\\Model_User_Network', 'key_from' => 'id', 'key_to' => 'user_id', 'cascade_save' => false, 'cascade_delete' => false )
Harro Verton wrote on Friday 1st of July 2011:No, not a bug. If the model you relate to is in another namespace, then define the namespace.protected static $_has_many = array( 'networks' => array( 'model_to' => '\\namespace\\Model_User_Network', 'key_from' => 'id', 'key_to' => 'user_id', 'cascade_save' => false, 'cascade_delete' => false )
protected static $_has_many = array( 'networks' => array( 'model_to' => '\\user\\Model_User_Network', 'key_from' => 'id', 'key_to' => 'user_id', 'cascade_save' => false, 'cascade_delete' => false )
Harro Verton wrote on Friday 1st of July 2011:Think I understood you incorrectly. If your model is called Model_User_Network, and is in app, it must be in a file called network.php, stored in app/classes/model/user in order to be autoloaded.
oil g model user_networks
oil g model user_network
It looks like you're new here. If you want to get involved, click one of these buttons!