# |
Today, 14:25 |
neon1024 |
Sorry @admad I use the library directly |
# |
Today, 14:24 |
admad |
can anyone using codeception help review https://github.com/cakephp/codeception/pull/51 |
# |
Today, 14:18 |
neon1024 |
I guess I might need to declare each type as it’s own table association? |
# |
Today, 14:17 |
neon1024 |
This way, I can leverage an entity as a type of semi-value object |
# |
Today, 14:17 |
neon1024 |
I am building a notification system and I had the thought that i could extend my Notification entity, to encompass different types of Notification. Can anyone envisage any drawbacks to this? I can only think of entity instantiation when doing a find |
# |
Today, 14:12 |
neon1024 |
@maymeow It’s hard to give a template for a sidebar. I would just recommend an element in `/src/Template/Element` with `<div id="sidebar"><!-- My Content --></div>` |
# |
Today, 14:02 |
damiano |
wow very fast! |
# |
Today, 14:02 |
damiano |
whhhhhhat? cakephp 4 has been released? :) |
# |
Today, 14:01 |
damiano |
ok no problem |
# |
Today, 14:01 |
damiano |
@challgren yeah my mistake... i baked that controller and then i changed the name... the default actions have queries inside |
# |
Today, 13:16 |
maymeow |
Hi. need good sidebar template for my admin section. now im using buttons instead of it. Any ideas? |
# |
Today, 12:37 |
neon1024 |
Yes, he might be active on Twitter |
# |
Today, 12:28 |
challgren |
bcrowe? |
# |
Today, 12:26 |
neon1024 |
Sorry did you try a message on his Twitter? |
# |
Today, 12:21 |
val |
`Cake\Validation\Validator<ValidationSet>` - what about that? |
# |
Today, 12:20 |
javier.villanueva |
There are a tinyauth plugin without authcomponent ? lol :_) _( |
# |
Today, 12:17 |
challgren |
Damm ok, I have a PR thats waiting and his github activity has been silent since middle of the year :( |
# |
Today, 12:15 |
neon1024 |
I find those errors hard to understand from PHP Stan. @admad recommended trying Psalm out, but I didn’t get too far with that yet |
# |
Today, 12:13 |
neon1024 |
Perhaps array if you mean the rules as they’re stored as an array internally I think |
# |
Today, 12:13 |
neon1024 |
Unless you’re using your own Validator class I guess |
# |
Today, 12:13 |
val |
`Cake\Validation\Validator<array>` or `Cake\Validation\Validator<Validator>` ? |
# |
Today, 12:12 |
neon1024 |
I think it’s just that, without the Foo personally, https://github.com/cakephp/cakephp/blob/master/src/Validation/Validator.php |
# |
Today, 12:12 |
val |
Hi, I start getting the error above after updating to the recent phpstan version. What would be the correct Foo value? |
# |
Today, 12:11 |
neon1024 |
I haven’t spoken to him since we had beers in NYC cakefest @challgren |
# |
Today, 12:11 |
val |
> Method App\Model\Table\MyTable::validationDefault() return type > has no value type specified in iterable type Cake\Validation\Validator. > Consider adding something like > Cake\Validation\Validator<Foo> to the PHPDoc. |
# |
Today, 12:04 |
challgren |
Is @bcrowe still doing cake dev? |
# |
Today, 11:44 |
slackebot |
Command sent from Slack by neon1024: |
# |
Today, 11:44 |
slackebot |
!awesome |
# |
Today, 11:22 |
megan |
On it! |
# |
Today, 11:19 |
neon1024 |
@megan If you’d like an easy starter, perhaps the cake logo could be updated on Openhub? https://www.openhub.net/p/cakephp :) |
# |
Today, 11:12 |
sami.silen |
I am refurbishing old database frontend and there are tables without keys defined and I cannot even define those because old frontend is created with polymorphic associations so that link table can reference to many different tables defined in one columns, what are my options to achieve these belongsToMany relations? |
# |
Today, 11:10 |
neon1024 |
In which case @yadav.manu36 I’m not sure why you are seeing a missing datasource error for debugkit |
# |
Today, 11:07 |
neon1024 |
Ahok, I wasn’t sure @admad as when I was trying it out with RC1 there was no tagged release for 4.0.0-RC1 in cakephp/app |
# |
Today, 11:00 |
admad |
@neon1024 since 4.0.0 is tagged for the skeleton `composer create-project cakephp/app myapp` will get you 4.0.0, there's no need to specify the version in command |
# |
Today, 10:20 |
megan |
haha it has been that long - thanks! :) @dakota is definitely trying :,) |
# |
Today, 10:20 |
challgren |
You teach her to code yet? :P |
# |
Today, 10:19 |
challgren |
Man its been that long!!! Well congrats! |
# |
Today, 10:19 |
megan |
I did! She's just turned 4 months old. Was off on maternity leave, which has flown by! Feel like I've missed a ton |
# |
Today, 10:15 |
challgren |
Didnt you just have a kiddo? *my memory is a little fuzzy* |
# |
Today, 10:15 |
megan |
Thanks @challgren! :grinning: |
# |
Today, 10:13 |
challgren |
WB @megan |
# |
Today, 10:01 |
megan |
@neon1024 I've passed your msg onto the dev team |
# |
Today, 10:01 |
neon1024 |
Hope the family are all good :) |
# |
Today, 10:00 |
megan |
Thanks @neon1024! Good to be back!!! Now to catch up :) |
# |
Today, 09:59 |
neon1024 |
Welcome back @megan |
# |
Today, 09:54 |
megan |
Morning everyone! |
# |
Today, 09:33 |
neon1024 |
`composer create-project cakephp/app:4.0.0 MyProject` |
# |
Today, 09:32 |
neon1024 |
Yes, so you might need to specify that https://github.com/cakephp/app/releases/tag/4.0.0 |
# |
Today, 09:32 |
neon1024 |
I wonder if there is a 4.0.0 release of cakephp/app |
# |
Today, 09:19 |
yadav.manu36 |
```composer create-project --prefer-dist cakephp/app my_app_name``` I used this command for installation |
# |
Today, 09:18 |
martin |
Not sure if that is the problem :$ |
# |
Today, 09:17 |
martin |
Dit You upgrade debug kit? |
# |
Today, 09:12 |
yadav.manu36 |
I have install cakePHP 4 and given below error |
# |
Today, 08:55 |
neon1024 |
Huge congratulations to the core team on the release of Cake 4 :clap: |
# |
Today, 08:34 |
jotpe |
@damiano What about? https://book.cakephp.org/3/en/controllers.html#loading-additional-models |
# |
Today, 08:29 |
challgren |
But without seeing your controllers cant really say what is wrong |
# |
Today, 08:27 |
jotpe |
Morning |
# |
Today, 08:22 |
challgren |
You using cake 3.8? |
# |
Today, 08:22 |
challgren |
If you need backends this-loadModel(backends) but you need modelawaretrait used |
# |
Today, 08:21 |
challgren |
It shouldn't be trying to load a model unless your interacting with it like $this-frontend-query |
# |
Today, 08:10 |
damiano |
@challgren sounds too strange my solution? i mean, is it mandatory that a specific controller has an associated table too ? |
# |
Today, 07:59 |
challgren |
https://api.cakephp.org/3.8/class-Cake.Datasource.ModelAwareTrait.html#_setModelType |
# |
Today, 07:58 |
challgren |
https://api.cakephp.org/3.8/class-Cake.Datasource.ModelAwareTrait.html#$modelClass |
# |
Today, 07:56 |
challgren |
I think $this->model = backends but I'm mobile so trying to think off the top of my head |
# |
Today, 07:54 |
damiano |
hello everybody, how can i disable auto-tables in controller? i have created two controllers, FrontendController and BackendController, but cakephp is looking for "frontends" table, can i disable this lookup? |
# |
Today, 07:54 |
challgren |
@conehead bake 2.0.0 should be compatible |
# |
Today, 07:45 |
conehead |
Yes, good job to all hard working people out there |
# |
Today, 07:40 |
javier.villanueva |
congrats for 4.0.0 |
# |
Today, 06:50 |
conehead |
Cannot upgrade: ```php composer.phar require --update-with-dependencies "cakephp/cakephp:4.0.*"``` Results in ``` - cakephp/bake 1.12.0 requires cakephp/cakephp ^3.8.0 -> satisfiable by cakephp/cakephp[3.8.0, 3.8.0-RC1, 3.8.0-RC2, 3.8.0-RC3, 3.8.0-beta1, 3.8.1, 3.8.2, 3.8.3, 3.8.4, 3.8.5, 3.8.6, 3.8.7, 3.x-dev] but these conflict with your requirements or minimum-stability.``` |
# |
Today, 04:34 |
challgren |
CakePHP 4.0.0 is out! https://github.com/cakephp/cakephp/releases/tag/4.0.0 |
# |
Today, 00:06 |
jh |
gnite |
# |
Today, 00:06 |
jh |
you can use array_values to force a rebuild of numerical indexes |
# |
Today, 00:06 |
jh |
if you tinker with the numerical indexes in php arrays the latter will need to be done |
# |
Today, 00:05 |
jh |
cause then u can either have ["foo", "bar"] or {"0": "foo, "1": "bar"} |
# |
Today, 00:05 |
jh |
and the mixed data type can be confusing when converting to json |
# |
Today, 00:04 |
jh |
php arrays can be numerical or hash based |
# |
Today, 00:04 |
jh |
there is only one thing that doesnt work so well afaik |
# |
Yesterday, 17:33 |
noel |
turns out it's just good 'ol `json_decode` making a mess of things. JSON doesn't work so well with PHP. |
# |
Yesterday, 15:34 |
inoas_ |
gut: JsonDataType, Entity |
# |
Yesterday, 15:27 |
noel |
Does anyone know what might be causing JSON objects to be converted to arrays before saving JSON data types? |
# |
Yesterday, 07:47 |
noel |
Morning all |
# |
Yesterday, 00:38 |
luizcmarin |
ops... # 14021, # 14022, # 14023 .... it's novel.. |
# |
Dec 14th, 23:13 |
luizcmarin |
I put the problem in issues. # 14022 |
# |
Dec 14th, 19:27 |
slackebot |
<luizcmarin> |
# |
Dec 14th, 19:25 |
luizcmarin |
need help solving these two items just |
# |
Dec 14th, 19:24 |
luizcmarin |
I learned that I should not change the content of 'vendor'. So how to solve it? |
# |
Dec 14th, 19:13 |
luizcmarin |
The first error are deprecated messages. I don't want to disable them. I want to solve them. |
# |
Dec 14th, 19:13 |
luizcmarin |
pardon. |
# |
Dec 14th, 19:13 |
luizcmarin |
o primeiro erro são de mensagens deprecated. Não quero desabilita-las. Quero resolve-las. |
# |
Dec 14th, 19:10 |
luizcmarin |
@admad @sean.kelly I appreciate your help. I understood how to solve this kind of problem. But there are two I can't. See this picture: |
# |
Dec 14th, 18:08 |
luizcmarin |
thanks you |
# |
Dec 14th, 17:10 |
sean.kelly |
Hi @luizcmarin: change `public function middleware($middlewareQueue)` to `public function middleware(MiddlewareQueue $middlewareQueue`. ;) |
# |
Dec 14th, 14:27 |
admad |
https://github.com/cakephp/app/blob/4.x/src/Application.php#L66 |
# |
Dec 14th, 14:25 |
luizcmarin |
@admad I tried to understand what to do .... but.... |
# |
Dec 14th, 14:22 |
admad |
add the typehints as expected |
# |
Dec 14th, 14:21 |
admad |
error message already contains the solution to the problem |
# |
Dec 14th, 14:20 |
luizcmarin |
and now? |
# |
Dec 14th, 14:19 |
luizcmarin |
*/ public function middleware($middlewareQueue) { $middlewareQueue // Catch any exceptions in the lower layers, // and make an error page/response ->add(new ErrorHandlerMiddleware(null, Configure::read('Error'))) |
# |
Dec 14th, 14:19 |
luizcmarin |
in my file: |
# |
Dec 14th, 14:19 |
luizcmarin |
Fatal error: Declaration of App\Application::middleware($middlewareQueue) must be compatible with Cake\Http\BaseApplication::middleware(Cake\Http\MiddlewareQueue $middleware): Cake\Http\MiddlewareQueue in C:\marin\www\ola\src\Application.php on line 63 |