# |
Dec 4th 2019, 10:06 |
javier.villanueva |
another tip, you should never mix dogs and cats |
# |
Dec 4th 2019, 10:01 |
neon1024 |
My guess is yesterday you were on convention, and has DogsCatsTable and DogsCatsController. I would guess that something has changed with the naming or aliases |
# |
Dec 4th 2019, 10:00 |
gianmarxgagliardi |
@spriz it works thanks. I don't understand why yesterday everything went without this line and today it is not |
# |
Dec 4th 2019, 09:57 |
spriz |
`var_dump($this->DogsCats)` should give `\App\Model\Table\DogsCatsTable` - or at the very least something like `\Cake\Orm\Table` |
# |
Dec 4th 2019, 09:56 |
spriz |
@gianmarxgagliardi have you added `$this->loadModel(' |
# |
Dec 4th 2019, 09:54 |
gianmarxgagliardi |
I do not understand |
# |
Dec 4th 2019, 09:53 |
gianmarxgagliardi |
you can be more specific |
# |
Dec 4th 2019, 09:49 |
neon1024 |
This is exactly your error, your table class is not loaded, again. Third time! |
# |
Dec 4th 2019, 09:49 |
neon1024 |
This :point_up: |
# |
Dec 4th 2019, 09:49 |
gianmarxgagliardi |
if I do a `var_dump` of `$this->DogsCats` gives the following result: `C:\wamp64\www\cake\src\Controller\DogsCatsController.php:21:boolean false` |
# |
Dec 4th 2019, 09:44 |
gianmarxgagliardi |
I repeated yesterday evening I had no idea what could have happened I had also put the solution on stack over flow --> https://stackoverflow.com/questions/59141547/cakephp-displays-the-id-display-table-name-from-two-different-tables-with-relati |
# |
Dec 4th 2019, 09:39 |
gianmarxgagliardi |
yes -> https://pastebin.com/j4ARkz3s |
# |
Dec 4th 2019, 09:37 |
jotpe |
@gianmarxgagliardi does your DogsCatsTable exist? |
# |
Dec 4th 2019, 09:35 |
jotpe |
Morning |
# |
Dec 4th 2019, 09:33 |
gianmarxgagliardi |
sorry I don't know if it ever happened to any of you, everything worked for me last night. Tell me this screen |
# |
Dec 4th 2019, 08:29 |
steinkel |
@nuzulfikrie we opted to provide support for new auth plugins + 4.x and keep AuthComponent for 3.x |
# |
Dec 4th 2019, 07:00 |
javier.villanueva |
morning all |
# |
Dec 4th 2019, 05:10 |
challgren |
@nuzulfikrie is there a branch support for 3.8 and authentication? |
# |
Dec 4th 2019, 04:20 |
challgren |
Yeah I think everyone is going 4.x |
# |
Dec 4th 2019, 04:02 |
nuzulfikrie |
Thanks @challgren. Closer look on Github, seems that the Doc is for 4.x, But code i got is 3.x |
# |
Dec 4th 2019, 01:29 |
challgren |
You need to use the 9.next branch of CakeDC users I think but that supports CakePHP 4.x |
# |
Dec 4th 2019, 01:23 |
nuzulfikrie |
Hi, to integrate CakeDC users and cakephp\authentication . Do i need to load both plugins in Application.php? because in cakedc auth , authentication is not listed as plugin |
# |
Dec 3rd 2019, 20:59 |
challgren |
Haha |
# |
Dec 3rd 2019, 20:59 |
ricksaccous |
lol |
# |
Dec 3rd 2019, 20:58 |
ricksaccous |
@challgren awesome, it's good to know that we are on the same page, it reinforces that my idea is good and I'm a genious |
# |
Dec 3rd 2019, 20:56 |
challgren |
Actually I do have one example but its as you said. I create a job with a reference and the notBefore is 5 minutes from the time the jobs created. Then if the user edits the audit between now and 5 minutes it resets the notBefore. Then eventually timesout and sends the quote to the customer |
# |
Dec 3rd 2019, 20:45 |
challgren |
Yep thats what I would do |
# |
Dec 3rd 2019, 20:39 |
ricksaccous |
i suppose i'd have to create a job with a reference field and keep updating the notBefore date as necessary |
# |
Dec 3rd 2019, 20:39 |
ricksaccous |
was thinking of that, i'm using dereuromark queue right now |
# |
Dec 3rd 2019, 20:36 |
challgren |
You'd probably need a queue for that |
# |
Dec 3rd 2019, 20:32 |
ricksaccous |
has anyone created an event in cakephp to the likening of "after 30 seconds of inactivity run x"? |
# |
Dec 3rd 2019, 20:26 |
ricksaccous |
@shifat.it read this a lot https://book.cakephp.org/3/en/orm/query-builder.html |
# |
Dec 3rd 2019, 19:10 |
brian.french |
Yeah, that's basically what I ended up doing. |
# |
Dec 3rd 2019, 16:43 |
noel |
OMG.. the relief. It's like 2 days of constipation finally over :man-facepalming: and in the end was PEBKAC as usual. |
# |
Dec 3rd 2019, 16:40 |
noel |
Turns out I hadn't added the model's table class definition. Is it expected to receive 404 error when there's a class missing? |
# |
Dec 3rd 2019, 16:39 |
shifat.it |
https://pastebin.com/135UPfpG |
# |
Dec 3rd 2019, 16:39 |
shifat.it |
how to convert this in association |
# |
Dec 3rd 2019, 16:27 |
noel |
Seems that was a red-herring anyhow because either side of that logic split I still get a malformed URL :thinking_face: |
# |
Dec 3rd 2019, 16:18 |
noel |
It's false by default and in my case it is throwing an error because for some unknown reason it is producing a URL without a controller or action set. I thought it might be this problem: https://crud-json-api.readthedocs.io/en/latest/additional-information/common-issues.html#missing-routes ... but I've added all my models into the routes and it's still happening. So I'm stumped. Have been for 2 days now. |
# |
Dec 3rd 2019, 16:16 |
noel |
It's clear that it's used in generating those links but it seems to be a switch, which writes them one way if enabled and another if not and the difference is neither clear nor documented: https://github.com/FriendsOfCake/crud-json-api/blob/382907f1d9cca4fe23fc9113d93bb9ea45037806/src/Schema/JsonApi/DynamicEntitySchema.php#L285 |
# |
Dec 3rd 2019, 16:15 |
noel |
Yes it does, of course... but the question is what precisely has it to do with them :slightly_smiling_face: |