# |
Dec 27th 2019, 11:26 |
ndm |
Ackchyually... the list finder already uses a result formatter that combines the fields ;) |
# |
Dec 27th 2019, 11:26 |
steinkel |
try find/formatResults/combine |
# |
Dec 27th 2019, 11:25 |
gianmarxgagliardi |
Undefined property `cognome`. You have not defined the `cognome` association on `App\Model\Table\RefereesTable`. |
# |
Dec 27th 2019, 11:24 |
gianmarxgagliardi |
```$seasonReferees = $this->Matches->SeasonReferees->find('list', ['keyField' => 'id', 'valueField' =>function($fullName){ $fullName=$this->Matches->SeasonReferees->Referees; return $fullName->cognome .' '. $fullName->nome; }]);``` |
# |
Dec 27th 2019, 11:24 |
gianmarxgagliardi |
I would have tried something like that but it doesn't work |
# |
Dec 27th 2019, 11:18 |
steinkel |
I'd say, instead of using find('list'), use find to get all the required columns, then `combine` or formatResults |
# |
Dec 27th 2019, 11:16 |
steinkel |
`full_name` is not available in the context of a find |
# |
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 |