Jeremy Burns

Hello again :)
Code in the model of my port-table:

(the $hasOne association from my origionally question was updated to
the association below:)
[code]
public $hasMany = array(
    'Port' => array(
        'className' => 'Port',
        'foreignKey' => 'uplink_id'
    )
);
[/code]

I chose the alias "Port" because, when i try to call it different, for
example "PortUplink", the following error occurs:
Model "PortUplink" is not associated with model "Port" [CORE\cake\libs
\model\behaviors\containable.php, line 340]

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe from this group, send email to 
cake-php+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to