# |
Feb 21st 2020, 16:39 |
ndm |
I mean, technically you don't really _need_ to change anything, keeping things as is won't cause any harm to the Bitbucket repo, but removing the stuff that you don't use surely is advised from a purely organisational point of view. |
# |
Feb 21st 2020, 16:36 |
ricksaccous |
that's somewhat how i operate though it is good to get ideas every now and then |
# |
Feb 21st 2020, 16:36 |
ricksaccous |
@trash.mail.collector you gotta just do stuff, nothing more necessary, don't fret over small things and just try it and see, the more you take action the easier it is to figure things out for yourself |
# |
Feb 21st 2020, 16:35 |
kaliel |
i already asked, but can't remember, what lib do you suggest for replacement of Folder and File API ? (i'll miss them so much) |
# |
Feb 21st 2020, 16:33 |
trash.mail.collector |
do I need to make any other changes before an initial commit (this is my first 4.x project -- I apologize for the dumb questions)? |
# |
Feb 21st 2020, 16:29 |
ndm |
@trash.mail.collector Sure, why not, unless Bitbucket somehow has support for it, it only serves a function for Github based code hosting. |
# |
Feb 21st 2020, 16:26 |
ndm |
Personally I'd also put manual type validation in the method code itself, nothing more annoying then too lax interfaces IMHO :) |
# |
Feb 21st 2020, 16:25 |
kaliel |
@ndm thx a lot |
# |
Feb 21st 2020, 16:25 |
trash.mail.collector |
I have a new cakephp skeleton app (created using Composer). If I want to add that as an initial commit to a BitBucket repo, should I delete the .github directory? |
# |
Feb 21st 2020, 16:24 |
ndm |
@kaliel Check whether your `d` associations target table is actually an instance of your table class, and not an autogenerated model (an instance of `\Cake\ORM\Table`) |
# |
Feb 21st 2020, 16:23 |
ndm |
If you mean the actual method signature, they ses, you'd use no typehint there and only put one in the docblock |
# |
Feb 21st 2020, 16:22 |
kaliel |
thx @ndm,so i use no type in params ? |
# |
Feb 21st 2020, 16:20 |
ndm |
In the `@param` docblock. PHP itself doesn't support union types yet. |
# |
Feb 21st 2020, 16:18 |
kaliel |
do you know how to write union types for method params in php ? |
# |
Feb 21st 2020, 15:58 |
kailas |
well, the bigger issue is that i’m just not seeing my associated records on the view page for a. in reality i’m actually joining d.x.y. in my result, i don’t see x or y |
# |
Feb 21st 2020, 15:47 |
neon1024 |
You can manually join if you’d prefer, but do remember you’ll end up with a primary row for every associated record |
# |
Feb 21st 2020, 15:47 |
kailas |
i’m surprised i’ve never had this question before |
# |
Feb 21st 2020, 15:47 |
kailas |
weird |
# |
Feb 21st 2020, 15:47 |
kailas |
oh, i see |
# |
Feb 21st 2020, 15:46 |
neon1024 |
@kailas hasMany are done as a separate query and merged in PHP |
# |
Feb 21st 2020, 15:35 |
kailas |
I’m getting a record with a->get($id,[‘contain’=>[‘c’,‘d’,‘e’]); when i look at the sql, i’m not seeing the joins for d and e. if i do a->get($id,[‘contain’=>[‘c’d’,‘e’]); i see no joins at all. feels like something is wrong with my association for d. the association for D is a simple hasMany (a hasMany D). any ideas what to do? |
# |
Feb 21st 2020, 14:31 |
dereuromark |
linux |
# |
Feb 21st 2020, 14:29 |
kaliel |
@dereuromark Are you using vagrant because your os is windows ? |
# |
Feb 21st 2020, 14:25 |
dereuromark |
hehe |
# |
Feb 21st 2020, 14:21 |
admad |
Well it says "No error" so just ignore it :P |
# |
Feb 21st 2020, 14:06 |
javier.villanueva |
uhm... not my case then, but thanks |
# |
Feb 21st 2020, 14:05 |
dereuromark |
in my case it was the local vagrant time wrong, had to restart vagrant |
# |
Feb 21st 2020, 14:04 |
javier.villanueva |
:( only from my local too, to smartsheet api |
# |
Feb 21st 2020, 14:03 |
dereuromark |
I just did :) 5 min ago, well very similar from my local vagrant to googlemaps api |
# |
Feb 21st 2020, 14:02 |
javier.villanueva |
cURL Error (56) OpenSSL SSL_read: No error |
# |
Feb 21st 2020, 14:02 |
javier.villanueva |
Anyone have this error? (in curl post to https) |
# |
Feb 21st 2020, 13:53 |
javier.villanueva |
```function ($row) { return (int)$row['acc_num']; }, ]``` |
# |
Feb 21st 2020, 13:53 |
javier.villanueva |
or |
# |
Feb 21st 2020, 13:52 |
javier.villanueva |
```function ($row) { return intval($row['acc_num']); }, ]``` |
# |
Feb 21st 2020, 12:13 |
matt |
```$this->viewBuilder()->setClassName('CsvView.Csv'); $this->set(compact('deposits', '_serialize', '_header', '_extract', '_enclosure'));``` |
# |
Feb 21st 2020, 12:12 |
matt |
```$_extract = [ // sort code function ($row) { return DepositsUtil::forceEnclosure($row['race']['event']['organiser']['sort_code'], Deposit::EXPORT_ENCLOSURE); },``` |
# |
Feb 21st 2020, 12:11 |
matt |
Hi im using FriendsOfCake/cakephp-csvview but when i export the data it converts the collumns having leading 0s to just the numbers ie 000123 => 123, how can i fix this? |
# |
Feb 21st 2020, 12:10 |
spriz |
imagine if it's a db.t2.medium |
# |
Feb 21st 2020, 12:10 |
spriz |
that's simply a waste of time :) |
# |
Feb 21st 2020, 12:10 |
spriz |
welp, I'd tell clients there's nothing you can do without knowing exactly what hardware that is running |
# |
Feb 21st 2020, 12:09 |
challgren |
Im still waiting for access, so I can only guess |