# |
Sep 22nd 2011, 10:11 |
dogmatic69 |
ACTION pokes dakota |
# |
Sep 22nd 2011, 10:11 |
dakota |
the searchable behaviour is for searching your app |
# |
Sep 22nd 2011, 10:11 |
dakota |
ujjain: Ah, I remember that one from ages ago. Well, it depends. what do you want to do? The cakedc one is more for filtering a single model based |
# |
Sep 22nd 2011, 10:10 |
ujjain |
https://code.google.com/p/searchable-behaviour-for-cakephp/ |
# |
Sep 22nd 2011, 10:10 |
dakota |
google code one? |
# |
Sep 22nd 2011, 10:10 |
ujjain |
is the cake dc one better? |
# |
Sep 22nd 2011, 10:10 |
ujjain |
dakota: the google code one... |
# |
Sep 22nd 2011, 10:09 |
dakota |
ujjain: the CakeDC one? |
# |
Sep 22nd 2011, 10:08 |
ujjain |
Is the searachable behaviour good? |
# |
Sep 22nd 2011, 09:49 |
dogmatic69 |
!tell Section58 about bin |
# |
Sep 22nd 2011, 09:49 |
Section58 |
er wtf |
# |
Sep 22nd 2011, 09:48 |
Section58 |
SELECT `Artist`.`id`, `Artist`.`name`, `Artist`.`slug`, `Artist`.`bio`, `Artist`.`created`, `Artist`.`modified`, `Artist`.`country_id`, `ArtistsEvent`.`id`, `ArtistsEvent`.`artist_id`, `ArtistsEvent`.`event_id` FROM `guestlist_artists` AS `Artist` JOIN `guestlist_artists_events` AS `ArtistsEvent` ON (`ArtistsEvent`.`event_id` IN (3295, 3532, 3412, 3358, 3294, 3273, 3293, 3528, 3529, 3530, 3163, 3275, 3324, 3472, 3526, 3271, 3356, 3527, 3346, 3344, 3162, 352 |
# |
Sep 22nd 2011, 09:46 |
diverdude |
sorry...my mistake |
# |
Sep 22nd 2011, 09:46 |
dogmatic69 |
yep |
# |
Sep 22nd 2011, 09:46 |
diverdude |
it should be singular |
# |
Sep 22nd 2011, 09:46 |
diverdude |
sorry man |
# |
Sep 22nd 2011, 09:46 |
diverdude |
ahh yes |
# |
Sep 22nd 2011, 09:46 |
dogmatic69 |
read it |
# |
Sep 22nd 2011, 09:46 |
dogmatic69 |
!conventions |
# |
Sep 22nd 2011, 09:46 |
dogmatic69 |
no |
# |
Sep 22nd 2011, 09:45 |
diverdude |
thats odd...in my database table profile the FK is called childrenstatuses_id ... which should be ok? |
# |
Sep 22nd 2011, 09:44 |
dogmatic69 |
pr(array_keys((array)$this>Profile)); |
# |
Sep 22nd 2011, 09:44 |
dogmatic69 |
can you see the *ES* at the end? |
# |
Sep 22nd 2011, 09:43 |
dogmatic69 |
Profile -> $Childrenstatuses ... you have |
# |
Sep 22nd 2011, 09:43 |
dogmatic69 |
Profile -> $Childrenstatus ... should be |
# |
Sep 22nd 2011, 09:43 |
dogmatic69 |
dude... if you just read the error you will note the problem... you have error ... Profile::$Childrenstatus does not exist, you defined Profile -> Childrenstatuses |
# |
Sep 22nd 2011, 09:43 |
diverdude |
dogmatic69, they are already that? |
# |
Sep 22nd 2011, 09:42 |
dogmatic69 |
Profile -> Childrenstatus |
# |
Sep 22nd 2011, 09:42 |
dogmatic69 |
models singular, controllers plural |
# |
Sep 22nd 2011, 09:41 |
dogmatic69 |
!tell diverdude about conventions |
# |
Sep 22nd 2011, 09:41 |
dogmatic69 |
!tell diverdude about convetions |
# |
Sep 22nd 2011, 09:41 |
diverdude |
dogmatic69, what do you mean? profiles and childrenstatuses are both plural no? |
# |
Sep 22nd 2011, 09:41 |
isaqual |
rchavik: Thanks, I think that is the best way in this case. |
# |
Sep 22nd 2011, 09:40 |
dogmatic69 |
diverdude: ^ models are not plural |
# |
Sep 22nd 2011, 09:40 |
dogmatic69 |
http://bin.cakephp.org/view/1270416005 line 197 |
# |
Sep 22nd 2011, 09:40 |
francky06l |
Hi Bakers |
# |
Sep 22nd 2011, 09:40 |
dogmatic69 |
that will do |
# |
Sep 22nd 2011, 09:39 |
diverdude |
dogmatic69, was that what you were asking for? |
# |
Sep 22nd 2011, 09:37 |
diverdude |
Here is generated model http://bin.cakephp.org/view/1270416005 and the other table structure: http://bin.cakephp.org/view/2078923647 |
# |
Sep 22nd 2011, 09:36 |
rchavik |
isaqual, no.. you'll need to Configure::load() it in the shell |
# |
Sep 22nd 2011, 09:35 |
dogmatic69 |
not singular |