# |
Jun 29th 2018, 11:50 |
bernat |
thanks |
# |
Jun 29th 2018, 11:46 |
josbeir |
nope |
# |
Jun 29th 2018, 11:45 |
bernat |
I guess not. Too specific probably. :s |
# |
Jun 29th 2018, 11:45 |
bernat |
I'm solving it myself already, just asking if there was some hack in the framework or some plugin that solves it automatically. |
# |
Jun 29th 2018, 11:45 |
josbeir |
and check if it has already been converted and just return the converted object(s) |
# |
Jun 29th 2018, 11:44 |
josbeir |
Why not just store it somewhere after converting it? |
# |
Jun 29th 2018, 11:44 |
bernat |
What bothers specially is that when reading Products->Services, the object instances for Services get duplicated instead of being reused. |
# |
Jun 29th 2018, 11:43 |
bernat |
I want to read the association Services->Products just one time from the database. And somewhere in the code I need Services->Products and in other places it would be handy to have Products->Services. I could load Services->Products->Services but that means a lot of reading from the database and lots of duplicated instances. |
# |
Jun 29th 2018, 11:42 |
josbeir |
ok, i was a little too quick in reading your question.. yeah what @tim said or doing it after fetching somewhere |
# |
Jun 29th 2018, 11:41 |
josbeir |
:) |
# |
Jun 29th 2018, 11:41 |
josbeir |
i'm still not getting the question but thats just me |
# |
Jun 29th 2018, 11:40 |
bernat |
Right tim, but when I need this it's because I need the association both ways. |
# |
Jun 29th 2018, 11:40 |
bernat |
It's easy to do it myself but I found myself doing it many times and I thought it might be already solved. |
# |
Jun 29th 2018, 11:39 |
tim |
Why not just load Services instead and contain Products? |
# |
Jun 29th 2018, 11:39 |
bernat |
No, I just mean using arrays/collections. No persistence involved. |
# |
Jun 29th 2018, 11:37 |
josbeir |
so that it persists between requests? |
# |
Jun 29th 2018, 11:37 |
josbeir |
? |
# |
Jun 29th 2018, 11:37 |
josbeir |
what do you mean by 'in memory' |
# |
Jun 29th 2018, 11:35 |
bernat |
I've read the association Services->Products into entities from the database and I'd like to convert it to Products->Services in memory. I don't even know how to search this in Google. It might be a silly question since I could do it myself with some loops but I'm wondering if there's an implemented solution. |
# |
Jun 29th 2018, 11:33 |
josbeir |
howdy |
# |
Jun 29th 2018, 11:32 |
bernat |
Hi. |
# |
Jun 29th 2018, 11:01 |
steinkel |
check for similar issues already fixed in the plugin, 4.2.1 is a bit old now |
# |
Jun 29th 2018, 11:00 |
steinkel |
^ on loginRedirect |
# |
Jun 29th 2018, 10:59 |
steinkel |
the error usually happens in the users context when you are trying to redirect to a page and you are not allowed to by Rbac permissions |
# |
Jun 29th 2018, 10:58 |
steinkel |
@jhob debug access and error logs to check where are you trying to redirect |
# |
Jun 29th 2018, 10:22 |
jhob |
Got a cake 3.3.16 project with cakedc/users 4.2.1 . In browsers other than chrome get a 'This page isn't redirecting properly' error after login. Only happens sometimes, clearing cookies does not always fix the issue. Any thoughts on what could be causing this? Not always reproducible. |
# |
Jun 29th 2018, 10:21 |
josbeir |
@lorenzo => https://github.com/cakephp/elastic-search/pull/179 |
# |
Jun 29th 2018, 10:18 |
dereuromark |
are you planning on making cake3 the master branch and start tagging a 0.1 release? |
# |
Jun 29th 2018, 09:43 |
dereuromark |
gotcha, thx |
# |
Jun 29th 2018, 09:42 |
lorenzo |
this is the automatic way: https://github.com/jippi/cakephp-newrelic#appconsolecakephp |
# |
Jun 29th 2018, 09:42 |
lorenzo |
since it was our plugin, we just extended it |
# |
Jun 29th 2018, 09:42 |
lorenzo |
We added the trait or extended the shell |
# |
Jun 29th 2018, 09:42 |
lorenzo |
and manually called this https://github.com/jippi/cakephp-newrelic/blob/master/Trait/NewRelicTrait.php#L22 |
# |
Jun 29th 2018, 09:41 |
dereuromark |
You mean you need to extend this one? |
# |
Jun 29th 2018, 09:41 |
lorenzo |
we added this to most shells https://github.com/jippi/cakephp-newrelic/blob/master/Console/Command/Task/NewRelicTask.php |
# |
Jun 29th 2018, 09:40 |
edgaras.jan |
I've added this to AppController ``` public function beforeFilter(Event $event) { if (extension_loaded('newrelic')) { newrelic_name_transaction($this->getRequest()->getParam('controller') . '/' . $this->getRequest()->getParam('action')); } ``` because NewRelic often misdetected controller/action |
# |
Jun 29th 2018, 09:40 |
lorenzo |
it probably does, we had to manually instrument newrelic in cli |
# |
Jun 29th 2018, 09:37 |
dereuromark |
Who uses newreclic on a heroku cake app? Does it need any more config to detect the web and cli stuff when you select "cakephp" as framework? |
# |
Jun 29th 2018, 09:17 |
naveenbos |
before that i need to set up this project in my local machine ubuntu 18.04 |
# |
Jun 29th 2018, 08:59 |
josbeir |
updating from 2 to 3 is not a small job |
# |
Jun 29th 2018, 08:59 |
josbeir |
https://book.cakephp.org/3.0/en/appendices/3-0-migration-guide.html |