Sunday, February 5, 2012

Re: My Behavior seems to be not attached to model.... :S

github gist says that behavior is located in  app\Model\Beahvior\OwnableBehavior.php # 

You have Beahvior instead of Behavior :)

--
Lep pozdrav, Tilen Majerle



2012/2/5 Mattia Manzati <manzati93@gmail.com>
Hi all! I have a problem when creating my own Behaviors. I have
attached it with actAs, but it seems that it is not attached to my
model because it does'nt trigger neither a print_r() or modify the SQL
Query... My Code: https://gist.github.com/1744216

(default) 2 queries took 0 ms Nr        Query   Error   Affected        Num. rows       Took
(ms)
1       SELECT `Anime`.`id`, `Anime`.`user_id`, `Anime`.`approved_by`,
`Anime`.`language_id`, `Anime`.`name`, `Anime`.`created`,
`Anime`.`modified`, `Language`.`id`, `Language`.`name`,
`Language`.`flag` FROM `my_im93`.`animes` AS `Anime` LEFT JOIN
`my_im93`.`languages` AS `Language` ON (`Anime`.`language_id` =
`Language`.`id`) WHERE 1 = 1 LIMIT 20           0       0       0
2       SELECT COUNT(*) AS `count` FROM `my_im93`.`animes` AS `Anime` LEFT
JOIN `my_im93`.`languages` AS `Language` ON (`Anime`.`language_id` =
`Language`.`id`) WHERE 1 = 1            1       1       0
(forum) 0 query took ms Nr      Query   Error   Affected        Num. rows       Took (ms)

As you can see queries are not modified :S

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: