# |
Jul 26th 2016, 09:45 |
dariolap |
Hi all, i want to do tests for shell files with phpunit. Any suggests? |
# |
Jul 26th 2016, 09:44 |
aro |
is there a way to get cake to use temporary tables |
# |
Jul 26th 2016, 09:35 |
tobasco |
thanks |
# |
Jul 26th 2016, 09:35 |
tobasco |
can anybody verify this query, i get a syntax error because cakephp does some crazy names with AS in the SQL query. Am I doing it wrong or is it a bug? http://pastie.org/private/ntamavaveov8yxlmjjewaa |
# |
Jul 26th 2016, 09:17 |
Meowcate |
Neon1024: Thanks for that |
# |
Jul 26th 2016, 09:13 |
Neon1024 |
Itâ??s a king of shorthand instead of [â??Shopsâ?? => [â??Citiesâ?? => [â??Countriesâ??], â??Managersâ??] |
# |
Jul 26th 2016, 09:12 |
Neon1024 |
Meowcate: Itâ??ll return data for everything contained, so Shops, Cities, Countries and Managers |
# |
Jul 26th 2016, 09:11 |
sonu_nk |
but seems not working.. |
# |
Jul 26th 2016, 09:11 |
sonu_nk |
I need your help to setup virtual host, i have a live project which is running on this ip like eg: 156.15.28.15 . and i want to run project on my ubuntu machine with same url like eg : 156.15.28.15 instead of localhost .. i also followed steps from here https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts |
# |
Jul 26th 2016, 08:52 |
Meowcate |
About contain() and this 4th example : http://book.cakephp.org/3.0/en/orm/retrieving-data-and-resultsets.html#eager-loading-associations , will the query return datas about products, countries and managers, or also about shops and cities ? |
# |
Jul 26th 2016, 08:40 |
Neon1024 |
Np |
# |
Jul 26th 2016, 08:37 |
joris_ |
i regenerated the migrations file but not the table class xD |
# |
Jul 26th 2016, 08:37 |
joris_ |
the first time i generated the migrations file, it auto created the id field |
# |
Jul 26th 2016, 08:36 |
Neon1024 |
Ahok :D |
# |
Jul 26th 2016, 08:36 |
joris_ |
neon1024: you owned it, primaryKey was pointing to id |
# |
Jul 26th 2016, 08:36 |
Neon1024 |
As your system will fail with two readings taken at the same time |
# |
Jul 26th 2016, 08:35 |
Neon1024 |
Or create your own data type class which does that conversion for you |
# |
Jul 26th 2016, 08:35 |
Neon1024 |
You might need to manually cast the datetime object to a string |
# |
Jul 26th 2016, 08:35 |
Neon1024 |
Also Iâ??m not sure how that will work, as DateTime in Cake is an object, whereas the primaryKey will probably be assumed to be an int or string |
# |
Jul 26th 2016, 08:35 |
Neon1024 |
Did you configure the Table class Measurements to know that the datetime field is the primary key? |
# |
Jul 26th 2016, 08:34 |
joris_ |
you can see the migrations file in the gist, i only used datetime and float |
# |
Jul 26th 2016, 08:33 |
Neon1024 |
Probably ENUM would be my guess |
# |
Jul 26th 2016, 08:33 |
Neon1024 |
Then your database has a column type which cake doesnâ??t understand |
# |
Jul 26th 2016, 08:33 |
joris_ |
I created a small gist to show the used code: https://gist.github.com/jorisvaesen/8950df804da8b7bdf0565932efc1456b |
# |
Jul 26th 2016, 08:32 |
joris_ |
The db gets created correctly, but when i want to save a new record it gives me the unknown type error on Database/Type.php |
# |
Jul 26th 2016, 08:31 |
joris_ |
I'm using migrations to create the tables (1 at the moment for testing) |
# |
Jul 26th 2016, 08:31 |
joris_ |
Anyone who can help with setting up cake 3 with an sqlite db ? |
# |
Jul 26th 2016, 08:28 |
joris_ |
Hello all |
# |
Jul 26th 2016, 08:27 |
mirec |
thanks. dynamic binding sounds good enough |
# |
Jul 26th 2016, 08:26 |
Neon1024 |
Which just means, loading the behavior as and when you need it, rather than using the Table classes initialize() method |
# |
Jul 26th 2016, 08:26 |
Neon1024 |
If you need multiple configs of the same behavior, Iâ??d be thinking more about doing dynamic binding |
# |
Jul 26th 2016, 08:25 |
Neon1024 |
As behaviors in cake 3 are not indexed by model any more |
# |
Jul 26th 2016, 08:25 |
Neon1024 |
Otherwise BehaviorCollection::name() would return just one instance |
# |
Jul 26th 2016, 08:24 |
Neon1024 |
Plus, I donâ??t think it is possible without aliasing it as another name in the BehaviorCollection |
# |
Jul 26th 2016, 08:24 |
Neon1024 |
Why would you want to? |
# |
Jul 26th 2016, 08:18 |
ra7bi |
i think yes |
# |
Jul 26th 2016, 08:16 |
mirec |
it is possible to bind the same behavior on a table multiple times with different configuration? |
# |
Jul 26th 2016, 08:16 |
mirec |
hello guys |
# |
Jul 26th 2016, 07:11 |
braguzz |
hi |
# |
Jul 26th 2016, 06:57 |
anujsharma9196 |
how can I implement Instamojo payment gateway |
# |
Jul 26th 2016, 06:17 |
braguzz |
I seen a couple of chart plugin, the question is: how to retrieve data from a 'user defined' query? (and then plot the results?) |