spearhead hat geschrieben:Also,...die Tabelle hies ursprünglich org_unit_sms_groups und das Model OrgUnitSmsGroups. Wenn ich die Applikation aufrufe schreit Cake sofort Error: Database table org_unit_sms_groups for model OrgUnitSmsGroups was not found.
Die Tabelle wurde umbenannt in org_unit_short_message_groups und das model heisst nun org_unit_short_message_group.php
Code:
- Code: Alles auswählen
<?phpclass OrgUnitShortMessageGroup
extends AppModel
{ var $name = 'OrgUnitShortMessageGroup'; var $hasAndBelongsToMany = array( 'OrgUnitEmployees' => array( 'className' => 'OrgUnitEmployees', 'joinTable' => 'org_unit_sms_groups_affiliation', 'foreignKey' => 'group_id', 'associationForeignKey' => 'employees_id' ) );}?>
Cache wurde geleert!
nach dem was dort steht, hat er das doch so gemacht...
p.s versuch mal die habtm zu auszukommentieren und dann teste mal... was anderes fällt mir dazu jetzt nicht ein.