There is an error in the IBM tutorial but i don't know what is wrong?
This is the code:

<?php
class Product extends AppModel
{
        var $name = 'Product';
        var $belongsTo = array ('Dealer' => array(
        'className' => 'Dealer',
        'conditions'=>,
        'order'=>,
        'foreignKey'=>'dealer_id')
        );
}
?>

Also the dealer is wrong too i think?

<?php
class Dealer extends AppModel
{
        var $name = 'Dealer';
        var $hasMany = array ('Product' => array(
        'className' => 'Product',
        'conditions'=>,
        'order'=>,
        'foreignKey'=>'dealer_id')
        );
}
?>

Does anybody know what this should be?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to