Hi,

I would like to enrich a model with data from another model. However
they are not directly related. The value that needs to be fetched from
the other model lies within a certain time-range.

I've searched the groups and have found that you should be able to
indicate that the foreignKey = false... but still I cannot get it to
work!

I have the following model for Pirce

class Price extends AppModel {
        var $hasOne = array('Vatrate'=>
                                                        array('conditions'      
=>'1=1',
                                                                
'foreignKey'=>false)
                                                );
}

The idea should be to finally make a condition which bounds the date,
so that I know which VAT-rate should be taken.

Any thoughts on how to use a model association (if this is possible)

--~--~---------~--~----~------------~-------~--~----~
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