# |
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 |
# |
Sep 22nd 2011, 09:35 |
dogmatic69 |
bin the table structure for the model*s* |
# |
Sep 22nd 2011, 09:35 |
diverdude |
the php file? |
# |
Sep 22nd 2011, 09:34 |
dogmatic69 |
the other model |
# |
Sep 22nd 2011, 09:34 |
diverdude |
dogmatic69, this is the table structure: http://bin.cakephp.org/view/1055359883 |
# |
Sep 22nd 2011, 09:32 |
dogmatic69 |
bin the table structure for the models |
# |
Sep 22nd 2011, 09:32 |
dogmatic69 |
diverdude: what is the fk |
# |
Sep 22nd 2011, 09:32 |
isaqual |
rchavik: If yes, that should be most natural way.. imho |
# |
Sep 22nd 2011, 09:31 |
isaqual |
rchavik: Settings are stored in db. Does shell tasks get inherited from config file ? |
# |
Sep 22nd 2011, 09:29 |
diverdude |
anyone? |
# |
Sep 22nd 2011, 09:27 |
rchavik |
isaqual, if you don't need vars from the controller, why not make it a config file ? |