# |
May 30th 2016, 11:35 |
kants |
I am facing issues to save it its saving wrong date |
# |
May 30th 2016, 11:35 |
kants |
slackebot are you familiar about saving date and datetime in database |
# |
May 30th 2016, 11:28 |
conehead |
@birdy247: try delete all logs and see which ones get recreated? |
# |
May 30th 2016, 11:24 |
birdy247 |
which logs should I check :worried: |
# |
May 30th 2016, 11:24 |
birdy247 |
not reaching cake |
# |
May 30th 2016, 11:24 |
birdy247 |
just a staright up 500 error |
# |
May 30th 2016, 11:17 |
birdy247 |
having issues loading the site |
# |
May 30th 2016, 11:17 |
birdy247 |
mmm, upgraded to 3.2 |
# |
May 30th 2016, 10:57 |
kants |
Evetying is fine only month is saving wrong |
# |
May 30th 2016, 10:57 |
kants |
in my controller |
# |
May 30th 2016, 10:56 |
kants |
use Cake\Database\Type; Type::build('date')->setLocaleFormat('yyyy-mm-dd'); |
# |
May 30th 2016, 10:56 |
kants |
ionas i am trying this |
# |
May 30th 2016, 10:54 |
ionas |
kants: it already saves properly, before you save - after you used newEntity or patchEntity check the datetime |
# |
May 30th 2016, 10:54 |
ionas |
you should also understand this Sonu_nk https://www.google.nl/search?q=sql+joinsandsource=lnmsandtbm=isch |
# |
May 30th 2016, 10:53 |
kants |
Hi any body familiar with save propper time fomat in database |
# |
May 30th 2016, 10:53 |
ionas |
thats what contain will do |
# |
May 30th 2016, 10:53 |
ionas |
however you still need to fetch the comments themselves in a separate qurey |
# |
May 30th 2016, 10:52 |
ionas |
you need innerJoinWith (matching would do as well but not required) comments and possibly distinct (or subqueries) to get the articles where mark story commented on |
# |
May 30th 2016, 10:52 |
ionas |
if you want to fetch say all articles where there are comments by mark story alongside comments |
# |
May 30th 2016, 10:51 |
ionas |
innerJoinWith/leftJoinWith is for only join conditions |
# |
May 30th 2016, 10:51 |
ionas |
matching is join conditions AND fetting data |
# |
May 30th 2016, 10:51 |
spriz |
http://book.cakephp.org/3.0/en/orm/retrieving-data-and-resultsets.html#filtering-by-associated-data |
# |
May 30th 2016, 10:51 |
ionas |
it is not for filtering based on nested data |
# |
May 30th 2016, 10:50 |
ionas |
containable is for getting nested data |
# |
May 30th 2016, 10:50 |
ionas |
meh |
# |
May 30th 2016, 10:50 |
ionas |
~matching |
# |
May 30th 2016, 10:50 |
Sonu_nk |
ionas: can you give me a example or cakephp help page ? |
# |
May 30th 2016, 10:47 |
ypnos |
professional diff editor |
# |
May 30th 2016, 10:47 |
ypnos |
I suggest Meld |
# |
May 30th 2016, 10:43 |
birdy247 |
and copy/paste what I need in |
# |
May 30th 2016, 10:43 |
birdy247 |
ionas, presumably I could also use netbeans to do a compare between the two files |
# |
May 30th 2016, 10:42 |
birdy247 |
bootstrap will |
# |
May 30th 2016, 10:42 |
ionas |
so then app.php will probably not change a lot |
# |
May 30th 2016, 10:41 |
ionas |
I didnt use env yet btu thats probably even better |
# |
May 30th 2016, 10:41 |
birdy247 |
i use app_local for alot of things |
# |
May 30th 2016, 10:41 |
ionas |
mysql credentials, cache settings, whatever |
# |
May 30th 2016, 10:41 |
ionas |
then on your terminal git diff â?¦ and then you are really save because you see what you need to change |
# |
May 30th 2016, 10:41 |
birdy247 |
sure, got that |
# |
May 30th 2016, 10:41 |
birdy247 |
ok |
# |
May 30th 2016, 10:41 |
ionas |
(composer create project I mean) |
# |
May 30th 2016, 10:41 |
ionas |
(the one that you get by composer install!) |