# |
Mar 14th 2018, 11:32 |
narendravaghela |
Can we use subquery in joins? It gives an error `Cannot use object of type Cake\ORM\Query as array ` |
# |
Mar 14th 2018, 11:25 |
neon1024 |
Hm, sounds good! Thanks for the info, I’ll have a try |
# |
Mar 14th 2018, 11:24 |
dereuromark |
doesnt miss anything and doesnt seem to have parse issues like regex solutions do |
# |
Mar 14th 2018, 11:23 |
dereuromark |
but I tested it and even though its slow it works good. |
# |
Mar 14th 2018, 11:23 |
dereuromark |
in that case maybe its own yaml would make sense. |
# |
Mar 14th 2018, 11:23 |
dereuromark |
especially since you are only interested in <=3.5 stuff |
# |
Mar 14th 2018, 11:23 |
dereuromark |
might be missing a few things, but based on migration guide you could add them |
# |
Mar 14th 2018, 11:23 |
dereuromark |
just run it as documented :slightly_smiling_face: |
# |
Mar 14th 2018, 11:22 |
neon1024 |
Actually, I’ll make a cup of tea and go through it properly rather than being lazy ;) |
# |
Mar 14th 2018, 11:22 |
dereuromark |
no |
# |
Mar 14th 2018, 11:22 |
neon1024 |
At a quick glance, I have to create a yaml config for all the changes between my version and the target? |
# |
Mar 14th 2018, 11:20 |
dereuromark |
this tool or my upgrade tool (a bit outdated) should do the trick |
# |
Mar 14th 2018, 11:20 |
dereuromark |
bottom line: https://www.reddit.com/r/PHP/comments/82ddpt/the_cakephp_core_team_is_excited_to_announce_the/dvaa8kv/ |
# |
Mar 14th 2018, 11:19 |
neon1024 |
Before 17:00 GMT? ;) |
# |
Mar 14th 2018, 11:19 |
dereuromark |
I am posting a blog post later today :slightly_smiling_face: |
# |
Mar 14th 2018, 11:18 |
neon1024 |
I am upgrading a plugin to Cake 3.5. Anyone have any tips on how to find and fix all the deprecations? I have run the deprecated code inspection in PHP Storm and fixed a few, but I’m not convinced it’s found them all. |
# |
Mar 14th 2018, 10:53 |
turkles |
meh, then I find it :) |
# |
Mar 14th 2018, 10:53 |
turkles |
argggg.. can someone remind me where the site title is set.. |
# |
Mar 14th 2018, 10:50 |
neon1024 |
Check the test suite, perhaps there is a test which uses Postgres |
# |
Mar 14th 2018, 10:49 |
neon1024 |
Not sure my boss would be happy with me spending time installing Postgres |
# |
Mar 14th 2018, 10:32 |
jimesh.gajera |
Even you can check it by installing Postgres into your machine |
# |
Mar 14th 2018, 10:31 |
jimesh.gajera |
with connection manager it is working properly |
# |
Mar 14th 2018, 10:31 |
neon1024 |
It would need someone who knows postgres to check :slightly_smiling_face: |
# |
Mar 14th 2018, 10:31 |
neon1024 |
Really? Sounds like a potential bug |
# |
Mar 14th 2018, 10:31 |
jimesh.gajera |
But with postgresql ORM is not working |
# |
Mar 14th 2018, 10:30 |
neon1024 |
You will not be able to write sql with a connection |
# |
Mar 14th 2018, 10:30 |
neon1024 |
That’s the ORM’s job |
# |
Mar 14th 2018, 10:30 |
neon1024 |
It won’t |
# |
Mar 14th 2018, 10:30 |
neon1024 |
Why would the connection know about sql? |
# |
Mar 14th 2018, 10:30 |
jimesh.gajera |
My question is, I am using postgresql with cakephp3, which is not directly working with Cakephp ORM. I need to write query using connnection manager. Now, I need to use $this->Paginator->paginate() but it is not working |
# |
Mar 14th 2018, 10:23 |
neon1024 |
So, what actually is your question? |
# |
Mar 14th 2018, 10:19 |
jimesh.gajera |
Yes, I am using Paginator component |
# |
Mar 14th 2018, 10:19 |
jimesh.gajera |
Postgres is already supported with cakephp3.0.12 version |
# |
Mar 14th 2018, 10:19 |
neon1024 |
As Postgres is supported, I would imagine you can use the Paginator component though as normla |
# |
Mar 14th 2018, 10:18 |
jimesh.gajera |
Not an issue, Thank @neon1024 for your response |
# |
Mar 14th 2018, 10:18 |
neon1024 |
Although I would suggest upgrading your Cake version |
# |
Mar 14th 2018, 10:17 |
neon1024 |
Sorry @jimesh.gajera I’ve never used Postgres with CakePHP |
# |
Mar 14th 2018, 09:45 |
Jimesh |
I am using Cakephp 3.0.12 |
# |
Mar 14th 2018, 09:44 |
Jimesh |
Could anyone help for the same? |
# |
Mar 14th 2018, 09:44 |
Jimesh |
But, didn't get a success |
# |
Mar 14th 2018, 09:43 |
Jimesh |
I need to add pagination using connection |