I have the following code for my model 'Order':
<?php
class Order extends AppModel {
public $name = 'Order';
public $validate = array(
'user_id' => array('numeric'),
'point_of_sales_id' => array('rule' => 'numeric', 'message' =>
'numeric'),
'logistic' => array('rule' => 'numeric', 'message' =>
'numeric'),
'status' => array('rule' => 'numeric', 'message' => 'numeric')
);
public $hasMany = array(
'OrderReference' => array('className' =>
'OrderReference',
'foreignKey' =>
'order_id',
'dependent' =>
false
),
'Rebound' => array('className' => 'Rebound',
'foreignKey' =>
'order_id',
'dependent' =>
false
)
);
When I use this model's relations in the controller, they are of
instance AppModel:
get_class( $this->Order->OrderReference ) return AppModel... this
means I've got no validation, no secundary relations what so ever, and
i've got this in multiple places so I doubt it's a
missconfiguration....
The code was baked via the console and most relations are not
edited....
We've been debugging this for days but can not find the solution why
the files don't get required at the right time, but do get required at
times they're not really needed...
Does anyone have experience with this problem, or can someone shed any
light on what to do/try next?
We've got a step through debugger and followed every move it makes but
did not find anything that made sense to why this problem occurs...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---