Hello all,

I've created a model with the following var:

var $belongsTo = array('Venue' =>
                array('className'  => 'Venue',
                        'conditions' => "Venue.vtype_id = '3'",
                        'order'      => '',
                        'foreignKey' => 'veune_id'
                ),

when I view the scaffold index it only displays records with the venue
id 3. This is what I want.

However, when it comes to adding or editing records it allows me to any
venue in the dropdown regardless of its type.

Is this a fault on my part or does the scaffolding not go that far?


Thanks

TWIOF


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to