# |
Dec 27th 2019, 11:16 |
steinkel |
@gianmarxgagliardi you're trying to use an Entity accessor as part of a query, see https://book.cakephp.org/3/en/orm/entities.html#creating-virtual-fields |
# |
Dec 27th 2019, 11:03 |
gianmarxgagliardi |
```$seasonReferees = $this->Matches->SeasonReferees->find('list', ['keyField' => 'id', 'valueField' =>['full_name']]);``` |
# |
Dec 27th 2019, 11:02 |
gianmarxgagliardi |
I should print in the form the name and surname of the referee only that I don't know how to take them |
# |
Dec 27th 2019, 11:02 |
gianmarxgagliardi |
this is the piece of code that gives me problems in the Matches add |
# |
Dec 27th 2019, 11:01 |
gianmarxgagliardi |
only when I have problems accessing the referees first and last name field |
# |
Dec 27th 2019, 11:01 |
gianmarxgagliardi |
now I should put everything in the field of a form |
# |
Dec 27th 2019, 11:01 |
gianmarxgagliardi |
```protected function _getFullName() { return $this->cognome . ' ' . $this->nome; }``` |
# |
Dec 27th 2019, 11:00 |
gianmarxgagliardi |
in referees I made method in the entity |
# |
Dec 27th 2019, 10:58 |
gianmarxgagliardi |
I would have these relationships I should print as season_referees id and id referees first and last name |
# |
Dec 27th 2019, 10:40 |
challgren |
To follow conventions? |
# |
Dec 27th 2019, 10:40 |
challgren |
And do you think deliverBy should maybe be changed to set/get? |
# |
Dec 27th 2019, 10:28 |
challgren |
Is all 3 maybe Overkill? |
# |
Dec 27th 2019, 10:28 |
challgren |
Yeah the docs need to be redone now that there's an email, mailer and trait |
# |
Dec 27th 2019, 10:24 |
dereuromark |
keep things agnostic here, instead add a good table e.g. linked from the readme, in my case I do that in the wiki home |
# |
Dec 27th 2019, 10:24 |
dereuromark |
yeah adding the concrete versions in readme title and composer description is usually an anti pattenr. it always gets outdated and lying. |
# |
Dec 27th 2019, 10:21 |
challgren |
Can anyone familiar with cake 4 do a code review real quick and see if I'm doing anything stupid https://github.com/narendravaghela/cakephp-mailgun |
# |
Dec 27th 2019, 09:19 |
alexdd55976 |
@admad how can i get rid of all those node modules... do not need that any more |
# |
Dec 27th 2019, 09:04 |
alexdd55976 |
does not sound right to me tho |
# |
Dec 27th 2019, 09:03 |
alexdd55976 |
that means i have to put that in the UIView directly, which would be directly in the repo |
# |
Dec 27th 2019, 09:01 |
alexdd55976 |
is that correct? |
# |
Dec 27th 2019, 09:01 |
alexdd55976 |
@admad there is no parameter for ` ```['layout' => 'default']``` |
# |
Dec 27th 2019, 09:00 |
admad |
yes |
# |
Dec 27th 2019, 09:00 |
challgren |
OK, so make a test_app Mailer? to test a MailerTrait? |
# |
Dec 27th 2019, 09:00 |
admad |
test the class using the trait |
# |
Dec 27th 2019, 08:54 |
challgren |
Whats the best way to test a trait? |
# |
Dec 27th 2019, 08:44 |
challgren |
composer require friendsofcake/bootstrap-ui “3.0.0-beta” |
# |
Dec 27th 2019, 08:43 |
alexdd55976 |
can i install it with composer? i am so bad getting this composer/github logic in my head? |
# |
Dec 27th 2019, 08:39 |
alexdd55976 |
@admad oh.. 3.0 is cake4? :) |
# |
Dec 27th 2019, 08:15 |
gianmarxgagliardi |
morning |
# |
Dec 27th 2019, 07:59 |
admad |
https://github.com/FriendsOfCake/bootstrap-ui/releases/tag/3.0.0-beta |
# |
Dec 27th 2019, 07:46 |
alexdd55976 |
is there any bootstrap helper working with cake4? |
# |
Dec 27th 2019, 07:37 |
alexdd55976 |
FriendsOfCake/*bootstrap-ui crashes* :( |
# |
Dec 27th 2019, 07:22 |
alexdd55976 |
morning duderinos |
# |
Dec 27th 2019, 06:14 |
slackebot |
transactions table is a common for all type of transactions like bookings, donations, memberships so we have tracked this using pivot table for all these table. all is file but in the booking section i am stucked according to requirement and the requirement is above mentioned. please check and help me |
# |
Dec 27th 2019, 06:14 |
yadav.manu36 |
Hello I have some problem to save data with belongsToMany data but i am stuck because we have different scenarios to save data. like we have single form to save booking and transactions also we need to manage belongsToMany strategy so please help me about how to do on this task. I have 3 tables like below: 1. bookings 2. transactions 3. transactions_bookings These are managed from 1 single form in the backend/admin section. |
# |
Dec 27th 2019, 04:19 |
challgren |
Why does codecov complain about a finally? https://codecov.io/gh/narendravaghela/cakephp-mailgun/src/master/src/Mailer/Transport/MailgunTransport.php#L167 |
# |
Dec 27th 2019, 03:39 |
latenal |
It worked. Thanks |
# |
Dec 27th 2019, 03:18 |
challgren |
Anyone have an idea how to test a trait? |
# |
Dec 27th 2019, 02:48 |
jeff.black |
@latenal https://book.cakephp.org/3/en/core-libraries/httpclient.html#sending-request-bodies |
# |
Dec 27th 2019, 02:45 |
ndm |
Pass JSON data, ie a string (`json_encode(['appId' => $appId, 'secret' => $secret])`), array data is treated as form data. gn8 |
# |
Dec 27th 2019, 02:38 |
latenal |
Hey guys, how do you set a `Content-Type` in `Cake\Http\Client` post-request? I tried ```$response = $this->httpClient->post( $url, ['appId' => $appId, 'secret' => $secret], [ 'headers' => ['content-type' => 'application/json']] );``` This is what it makes: ```POST /login HTTP/1.1 accept: */* Connection: close Content-Length: 34 content-type: application/json content-type: application/x-www-form-urlencoded``` |