# |
Dec 18th 2017, 13:23 |
josexato |
any Idea |
# |
Dec 18th 2017, 13:22 |
josexato |
I am not sure where to look, I've found some post talking to a debug limit, but I am not debugging anything |
# |
Dec 18th 2017, 13:22 |
josexato |
https://pastebin.com/NsG5h1JF |
# |
Dec 18th 2017, 13:21 |
josexato |
Good morning! One question I've implemented an autocomplete file successfully but I have this error when the response for the xhr has many results "maximum depth reached" |
# |
Dec 18th 2017, 13:13 |
patsuckow |
Hello everybody! Tell me how to transfer from the form, by the get method, to the variable in url /products/search/. To get the result: /products/search/search+string ? |
# |
Dec 18th 2017, 12:43 |
dariolap |
Hi all, in 3.5 version, ajax ctp template are not localized in template/ajax but only in template. How can I keep them in the old path? |
# |
Dec 18th 2017, 12:31 |
neon1024 |
Yes, seems it is, or the docblock claims that it is ;) |
# |
Dec 18th 2017, 12:29 |
neon1024 |
Anyone know if the CakePHP UUID is compliant with RFC4122 |
# |
Dec 18th 2017, 12:15 |
neon1024 |
You add your provider to the Validator with a key and then use that key |
# |
Dec 18th 2017, 12:14 |
neon1024 |
https://book.cakephp.org/3.0/en/core-libraries/validation.html#adding-validation-providers |
# |
Dec 18th 2017, 11:49 |
joop |
'provider'=>'..........' ? |
# |
Dec 18th 2017, 11:49 |
joop |
how should i call it in a model |
# |
Dec 18th 2017, 11:48 |
joop |
if i placed my costume validation rule to src\ORM\Rule directory |
# |
Dec 18th 2017, 11:48 |
makallio85 |
it has its downsides, but certainly some benefits also. |
# |
Dec 18th 2017, 11:48 |
rafael.junqueira.sant |
@admad Here are all the steps I took: https://pastebin.com/8v7wC81X Is there any other information I can provide? Was it intended to function with the steps I took? |
# |
Dec 18th 2017, 11:48 |
makallio85 |
No. Like I said, it is too much to do for now. And I dont not sign, that it is bad design. |
# |
Dec 18th 2017, 11:46 |
hmic |
so the reationale for keeping bad design is that you did it already |
# |
Dec 18th 2017, 11:46 |
makallio85 |
or did you mean clustering, not sure |
# |
Dec 18th 2017, 11:45 |
hmic |
*lol* |
# |
Dec 18th 2017, 11:45 |
makallio85 |
Yes i have read abóut it, but it is not the possibility here as it would be too much to refactor now. |
# |
Dec 18th 2017, 11:45 |
makallio85 |
But how do i set it back to connectionregistry with connectionmanager |
# |
Dec 18th 2017, 11:44 |
hmic |
and yes, you can change the tablename in a table object, sure. Table::setTable() does |
# |
Dec 18th 2017, 11:43 |
hmic |
you do know that mysql can handle the shards itself, yes you do |
# |
Dec 18th 2017, 11:43 |
makallio85 |
My first question was, wouldnt it be reasonable to allow table to be switched in connection object somehow without creating new connection object |
# |
Dec 18th 2017, 11:42 |
makallio85 |
and I need to switch table name in that connection |
# |
Dec 18th 2017, 11:42 |
makallio85 |
I have 1 connection "shard" in cake |
# |
Dec 18th 2017, 11:42 |
makallio85 |
And i have dynamic amount of shards |
# |
Dec 18th 2017, 11:42 |
makallio85 |
I have sharded database design |
# |
Dec 18th 2017, 11:41 |
hmic |
why you do that again? |
# |
Dec 18th 2017, 11:41 |
hmic |
makallio85, yes if you create new connections that is what you end up with |
# |
Dec 18th 2017, 11:35 |
makallio85 |
so there is no way to provide connection object to it and that is the reason i end up getting multiplied connection objects when altering table name |
# |
Dec 18th 2017, 11:34 |
makallio85 |
Aah, yes. ConnectionManager::setConfig('name', $conf = []) creates always new connection object |
# |
Dec 18th 2017, 11:17 |
makallio85 |
Probably it is creating new Connection objects for some reason then |
# |
Dec 18th 2017, 11:16 |
makallio85 |
but for some reason many connections are established, when i get connection from ConnectionManager, drop connection from registry, alter table name in connection object and set it back in connection registry. |
# |
Dec 18th 2017, 11:15 |
makallio85 |
Yes, thats what i thought about also |
# |
Dec 18th 2017, 11:15 |
hmic |
if you use/instantiate tables that use all of them of course, so could be even less |
# |
Dec 18th 2017, 11:14 |
hmic |
exactly |
# |
Dec 18th 2017, 11:14 |
makallio85 |
If I have 3 connections defined in cake, shouldnt it make 3 connections also to sql server? |
# |
Dec 18th 2017, 11:13 |
hmic |
somethings wrong, yes |
# |
Dec 18th 2017, 11:12 |
makallio85 |
Something strange then |
# |
Dec 18th 2017, 11:12 |
makallio85 |
Well, it seems it does :) |