# |
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!) |
# |
May 30th 2016, 10:40 |
ionas |
overwrite app.php and bootstrap.php from latest cakephp/app |
# |
May 30th 2016, 10:40 |
ionas |
its not like it is dangerous then |
# |
May 30th 2016, 10:40 |
ionas |
so whats the problem |
# |
May 30th 2016, 10:40 |
ionas |
) |
# |
May 30th 2016, 10:40 |
birdy247 |
of course :slightly_smiling_face: |
# |
May 30th 2016, 10:40 |
ionas |
do you have git? |
# |
May 30th 2016, 10:40 |
birdy247 |
so overwrite my local files? |
# |
May 30th 2016, 10:40 |
ionas |
then git diff and see what you need to possibly change because it is specific to your app |
# |
May 30th 2016, 10:39 |
ionas |
then copy in boostrap and app.php and save |
# |
May 30th 2016, 10:39 |
ionas |
have your app.php and boostrap.php in your git repo and all comitted and done and clean (git status on the console) |
# |
May 30th 2016, 10:39 |
ionas |
what you do is composer reate a project on 3.2 latest stable SOMEWHERE |
# |
May 30th 2016, 10:39 |
birdy247 |
hopefully there is an easy way to do this |
# |
May 30th 2016, 10:39 |
ionas |
doesn matter |
# |
May 30th 2016, 10:38 |
birdy247 |
I am using netbeans |