Log message #3148355

# At Username Text
# Jan 28th 2014, 22:48 dereuromark my other me
# Jan 28th 2014, 22:48 tigrang dereuromark: who asked you
# Jan 28th 2014, 22:45 dereuromark decimal 10,2 is fine IMO
# Jan 28th 2014, 22:30 biesbjerg 10000 = 100.00 $currency
# Jan 28th 2014, 22:30 biesbjerg having said that I actually use INT for monetary values
# Jan 28th 2014, 22:28 Nick__ just googled it and found it as you said that
# Jan 28th 2014, 22:28 Nick__ thanks :) I had 10,1
# Jan 28th 2014, 22:28 biesbjerg (2 decimal places)
# Jan 28th 2014, 22:28 biesbjerg to be to save 29.04 you should use decimal(10,2)
# Jan 28th 2014, 22:25 Nick__ I am using decimal(10,0) but when i insert 29.04 it just saves as 29
# Jan 28th 2014, 22:24 Nick__ hi all, what would the best mysql type be for currency?
# Jan 28th 2014, 20:53 beporter The pattern seems to be to prefix the issue title with "3.0 - ".
# Jan 28th 2014, 20:08 rvsjoen tried googling a bit but most of it is just people reinventing the wheel on stackexchange
# Jan 28th 2014, 20:08 rvsjoen so, anyone know about any pre-baked or even half-baked functionality for implementing a RESTful api, using token-based authentication ?
# Jan 28th 2014, 20:01 beporter If such a thing exists, this is the group of people to know about it.
# Jan 28th 2014, 20:01 beporter It wouldn't be pretty, but it seems like I could just require_once() it in my core config. I'm looking for a more elegant suggestion than that though.
# Jan 28th 2014, 19:59 dereuromark without namespaces this will not be possible
# Jan 28th 2014, 19:59 dereuromark https://github.com/dereuromark/tools/blob/master/Test/Case/Model/KeyValueTest.php#L9
# Jan 28th 2014, 19:59 beporter Like I said, I want to avoid having to include my class at the top of ALL of my test cases.
# Jan 28th 2014, 19:59 dereuromark extend the class and include it at the top of the file
# Jan 28th 2014, 19:57 beporter In 1.3, if I wanted to always use my own subclass of CakeTestCase, say from a plugin, is there an easy and clean way to get it include()d "globally" (testing contexts) without having to use App::import(...) at the top of every test file? For example, putting the necessary App::import() into config/core.php seems kinda hacky.
# Jan 28th 2014, 19:41 liamkeily Solved the above, think it was due to cacheing
# Jan 28th 2014, 19:28 liamkeily http://bin.cakephp.org/view/373845727
# Jan 28th 2014, 19:25 liamkeily I'm trying to use the contain parameter on a find query to include another model which has a hasMany relationship. But it says it can't because the models are not associated.. confused
# Jan 28th 2014, 18:49 liamkeily ah, i wasn't sure what HasAndBelongsToMany is for. I have just used belongsTo in my joining model. I will try that thanks :)
# Jan 28th 2014, 18:44 BackEndCoder ...
# Jan 28th 2014, 18:42 hiryu85 hello
# Jan 28th 2014, 18:42 riotera hello
# Jan 28th 2014, 18:42 hiryu85 hello
# Jan 28th 2014, 18:39 dereuromark it does that automatically this way
# Jan 28th 2014, 18:39 dereuromark liamkeily: that is the default behavior of cakephp for habtm
# Jan 28th 2014, 18:33 liamkeily is it good practice to delete all existing records before re-saving, so that ones that are unchecked are removed. Or maybe theres a better method
# Jan 28th 2014, 18:16 BackEndCoder and they wonder why it was load heavy
# Jan 28th 2014, 18:16 BackEndCoder with no cache
# Jan 28th 2014, 18:16 BackEndCoder i just found 26 lines with requestaction in this app
# Jan 28th 2014, 18:16 BackEndCoder omg
# Jan 28th 2014, 17:33 Froobly how can i get friendsofcake/crud to return an array of objects instead of an object containing an array of objects?
# Jan 28th 2014, 17:26 biesbjerg might do that :-) dicovered a bug in my diff algorithm though, so still working on it
# Jan 28th 2014, 17:23 dereuromark biesbjerg: make it pluginaized and i will use it too
# Jan 28th 2014, 17:13 styks1987 I can also visit the url directly /plugin_name/attachments/delete/1
# Jan 28th 2014, 17:13 dereuromark ;)