Hi
Well, I've got strange problem. I've created 3 tables.
1) nauczyciels
2) przedmiots
3) nauczyciel_przedmiots
When I try to add user in table nauczyciel it's work fine. But in
controller Nauczyciel I try to call something like: $this->Nauczyciel-
>Przedmiot->dodaj(12); and that doesn't work :( It's strange but when
i'm debug I see:
1 DESCRIBE `nauczyciels` 10 10 10
2 DESCRIBE `przedmiots` 2 2 12
3 SELECT `Przedmiot`.`id`, `Przedmiot`.`nazwa` FROM `przedmiots` AS
`Przedmiot` WHERE 1 = 1 ORDER BY `nazwa` ASC 3 3 2
4 INSERT INTO `nauczyciels`
(`imie`,`nazwisko`,`stopien`,`haslo`,`typ`) VALUES
('Name','Surename','inz.','7815696ecbf1c96e6894b779456d330e','1')
1
9
5 SELECT LAST_INSERT_ID() AS insertID 1 1 1
6 dodaj 1064: You have an error in your SQL syntax; check the manual
that corresponds to your MySQL server version for the right syntax to
use near 'dodaj' at line 1
Line number 6 ist strange for me. Why cake treat "dodaj" as a mysql
query?
TIA
lemon
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---