# |
Mar 6th 2018, 21:49 |
ank068 |
File uploaded https://cakesf.slack.com/files/U91GR08DV/F9LLMFF1V/-.txt / https://slack-files.com/T053DPNCM-F9LLMFF1V-3956a14658 - Just gives me the columns from TimeClocks table |
# |
Mar 6th 2018, 21:48 |
ank068 |
Anyone know how to get all the columns from all tables on a left join using querybuilder? |
# |
Mar 6th 2018, 21:40 |
savant |
iirc |
# |
Mar 6th 2018, 21:40 |
savant |
FrozenTime scopes it to just Time |
# |
Mar 6th 2018, 21:38 |
etipaced |
Is how I read that, at least. |
# |
Mar 6th 2018, 21:38 |
etipaced |
So FrozenTime gives us Chronos plus a little more. |
# |
Mar 6th 2018, 21:38 |
etipaced |
``` class FrozenTime extends Chronos implements JsonSerializable class Chronos extends DateTimeImmutable implements ChronosInterface ``` |
# |
Mar 6th 2018, 21:37 |
savant |
@etipaced I think Chronos is immutable but its DateTime? |
# |
Mar 6th 2018, 21:37 |
etipaced |
@savant Isn’t Chronos immutable as well? |
# |
Mar 6th 2018, 21:32 |
savant |
https://github.com/Homebrew/legacy-homebrew/issues/10673 |
# |
Mar 6th 2018, 21:31 |
ricksaccous |
i see |
# |
Mar 6th 2018, 21:31 |
savant |
yeah I havent done homebrew-php work in a while, but it was originally _my_ project. |
# |
Mar 6th 2018, 21:30 |
ricksaccous |
hahaha |
# |
Mar 6th 2018, 21:30 |
ricksaccous |
also I think I remember seeing your maintenance stuff on php homebrew and thinking is that the cake guy? |
# |
Mar 6th 2018, 21:30 |
ricksaccous |
anyway i think i'll just switch over to my mac for now to get work done, yargh |
# |
Mar 6th 2018, 21:29 |
ricksaccous |
one thing i do like about vagrant boxes is you can set them to an ip and then use hosts to change the url |
# |
Mar 6th 2018, 21:28 |
ricksaccous |
I've got a docker going on my mac but I'm running into trouble with vagrant boxes on my windows |
# |
Mar 6th 2018, 21:28 |
savant |
and then deploy to a paas like dokku (which I maintain) or heroku |
# |
Mar 6th 2018, 21:28 |
savant |
or `brew install postgres` since postgres is a nicer database |
# |
Mar 6th 2018, 21:28 |
savant |
i used to maintain homebrew-php and so am _very_ comfortable with that setup |
# |
Mar 6th 2018, 21:27 |
ricksaccous |
i see |
# |
Mar 6th 2018, 21:27 |
savant |
works fine |
# |
Mar 6th 2018, 21:27 |
savant |
brew install mysql |
# |
Mar 6th 2018, 21:27 |
savant |
source in my env vars, run that |
# |
Mar 6th 2018, 21:27 |
savant |
`bin/cake server` |
# |
Mar 6th 2018, 21:27 |
savant |
php on my mac |
# |
Mar 6th 2018, 21:27 |
ricksaccous |
a vagrant box? |
# |
Mar 6th 2018, 21:27 |
ricksaccous |
@savant out of curiosity what dev env do you use? |
# |
Mar 6th 2018, 21:24 |
savant |
FrozenTime is Immutable |
# |
Mar 6th 2018, 21:20 |
etipaced |
So for immutable (between Chronos and FrozenTime), what is the selection criteria? |
# |
Mar 6th 2018, 21:18 |
savant |
if you want a time thats mutable vs one that isnt |
# |
Mar 6th 2018, 21:17 |
etipaced |
How does one know when to use Chronos vs. Time vs. FrozenTime? |
# |
Mar 6th 2018, 20:58 |
savant |
and show what you want to happen and what actually happens? |
# |
Mar 6th 2018, 20:58 |
savant |
meder: can you gist some code? |
# |
Mar 6th 2018, 20:18 |
meder |
work fine separately* |
# |
Mar 6th 2018, 20:18 |
meder |
is there a reliable way of chaining 2 separate group by collection calls? $results->groupBy('parent.group_id') and $results->groupBy('parent_id'); which work fine, but if i chain them it doesn't work properly and understandably because they change the structure. but even if i try something like ->groupBy('parent.group_id')->groupBy('{n}.parent_id') that doesn't work as I think it does |
# |
Mar 6th 2018, 20:02 |
meder |
savant: ah- ty |
# |
Mar 6th 2018, 18:27 |
savant |
`$Table->schema()->columns()` |
# |
Mar 6th 2018, 18:27 |
savant |
I believe you can do |
# |
Mar 6th 2018, 18:27 |
meder |
and it'd be far easier doing table.* if there's a way |
# |
Mar 6th 2018, 18:26 |
meder |
i have a couple tables and for some of them, i want all rows but not others |