I'm not sure if I understand your question, but I do have a .php file
created with $useTable = "event_admins" - forgive the formatting...

app/model/eventadmin.php:
{{{
<?php
class EventAdmin extends AppModel {
        var $name = "EventAdmin";
        var $primaryKey = "id";
        var $belongsTo = "Event";
        var $useTable = "event_admins";
        var $hasMany = array(
                        'Administrator' => array(
                                        'className'  =>
'Administrator',
                                        'dependent'  => true
                                )
                );
}
?>
}}}

And here's this:

mysql> desc event_admins
+----------+---------+------+-----+---------+----------------+
| Field    | Type    | Null | Key | Default | Extra          |
+----------+---------+------+-----+---------+----------------+
| id       | int(11) | NO   | PRI | NULL    | auto_increment |
| event_id | int(11) | YES  |     | NULL    |                |
| admin_id | int(11) | YES  |     | NULL    |                |
+----------+---------+------+-----+---------+----------------+
3 rows in set (0.00 sec)

Any thoughts?

TIA -
leo
On May 31, 1:15 pm, Ricky Paz <[email protected]> wrote:
> In your model EventAdmin is there any relationship with some model
> matched with test_event_admins's table?

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

Reply via email to