Wait nevermind i found it :)
<?php
class Product extends AppModel
{
var $name = 'Product';
var $belongsTo = array ('Dealer' => array(
'className' => 'Dealer',
'conditions'=> null,
'order'=> null,
'foreignKey'=>'dealer_id')
);
}
?>
They forgot to add null to the array.
On Feb 17, 10:36 pm, "Mech7" <[EMAIL PROTECTED]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---