# |
Jun 11th 2018, 09:36 |
dereuromark |
As I mentioned in the ticket this usually states "the fact that the fixture couldnt be loaded and no such table could be created" - so the error message should be first of all made more clear here IMO. |
# |
Jun 11th 2018, 09:31 |
neon1024 |
devolt, Would you mind detailing your scenario on the issue please? https://github.com/cakephp/cakephp/issues/10953 |
# |
Jun 11th 2018, 09:30 |
devolt |
Hi, I have an error called "cannot describe x. it has 0 columns". Just moved cakephp files from one folder to another. Changed nothing in database. Raw acces via PHP is possible. Any ideas? Any help would be appreciated. |
# |
Jun 11th 2018, 09:30 |
tim |
The date that is saved in the database is UTC, I'm assuming you need a different one that adds 5 hours based on your location. Which means you need to change it in core.php |
# |
Jun 11th 2018, 09:30 |
loginews |
@neon1024 thanks a lot. I had designed my tables well before coming to cakephp. So I have to work without conventions. |
# |
Jun 11th 2018, 09:28 |
mukesh |
@tim |
# |
Jun 11th 2018, 09:28 |
neon1024 |
@loginews Yes, if you want to use something different to the convention you can configure the options used in the association. Do remember that if you do that, it will effect every query using that association. |
# |
Jun 11th 2018, 09:28 |
mukesh |
I have set default time zone is UTC in core.php |
# |
Jun 11th 2018, 09:27 |
tim |
@mukesh If the time has to be 5 hours extra, then I'm guessing you don't need UTC but a different timezone |
# |
Jun 11th 2018, 09:27 |
loginews |
ok I guess I will have to define my own association using an array |
# |
Jun 11th 2018, 09:27 |
neon1024 |
@loginews The type of association will usually define the type of join required |
# |
Jun 11th 2018, 09:26 |
neon1024 |
@loginews There is an association class which uses convention or configuration to know the foreign keys to use in the join. |
# |
Jun 11th 2018, 09:26 |
mukesh |
I have set date_default_timezone_set('UTC'); |
# |
Jun 11th 2018, 09:26 |
tim |
Timezone |
# |
Jun 11th 2018, 09:26 |
mukesh |
crdt time change at less 5:30 minutes( 11 Jun,2018 09:17 as response but it should be 11 Jun,2018 14:17) |
# |
Jun 11th 2018, 09:24 |
mukesh |
Any one know When i call rest API in Cakephp project it time change |
# |
Jun 11th 2018, 09:23 |
loginews |
when cakephp sees $this->belongsTo('Authors') how does it work out how the two tables are to be linked? |
# |
Jun 11th 2018, 09:18 |
saeideng |
so ask again :+1: |
# |
Jun 11th 2018, 09:18 |
saeideng |
it is good to ask and answer yourself |
# |
Jun 11th 2018, 09:17 |
saeideng |
:v: |
# |
Jun 11th 2018, 09:17 |
neon1024 |
:grimacing: |
# |
Jun 11th 2018, 09:16 |
neon1024 |
Oh it does, I should look before asking. |
# |
Jun 11th 2018, 09:16 |
neon1024 |
Is there a shortcut to the get the current page? `$this->getRequest()->getParam('paging')['Contents']['page']` is what I’m thinking, but it looks horrible. Does `getParam()` take a hash dot notation? That’d be nice |
# |
Jun 11th 2018, 09:04 |
neon1024 |
Morning everyone |
# |
Jun 11th 2018, 06:56 |
jtraulle |
gcapa |
# |
Jun 11th 2018, 05:19 |
braeden |
Could be an issue with your models and their relationship types |
# |
Jun 11th 2018, 01:26 |
mikesmoniker |
Can anyone think of any common reasons why a Query might be including the fields to the SELECT but leaving out the JOINs from the contains? It’d take me a while to provide an example query (it’s being generated very dynamically), but in my debugger I can see the contains are all set but when the SQL gets generated there are no joins. |
# |
Jun 10th 2018, 20:27 |
jojomartius |
hey guys, has anybody an idea if and how i can "see" if my tableobject is initialized directly or via a contain of an other table/model? |
# |
Jun 10th 2018, 18:57 |
kitcat711_ |
well still struggling with the migration: how do u handle the migration when a plugin is not ready yet? postpone, correction to the plugin by your own? |
# |
Jun 10th 2018, 15:36 |
dereuromark |
or just manually copy, I gave you a potential list of files after all here |
# |
Jun 10th 2018, 15:35 |
kitcat711_ |
so I should first add the new hhtp stack to my 3,5,4 app and then use the shell from dereuromark? |
# |
Jun 10th 2018, 15:33 |
kitcat711_ |
ready everything you wrote |
# |
Jun 10th 2018, 15:33 |
kitcat711_ |
back |
# |
Jun 10th 2018, 15:03 |
dereuromark |
I personally always use https://github.com/dereuromark/upgrade/blob/develop/src/Shell/Task/SkeletonTask.php to automatically upgrade skeleton files, easy and quickest, diff check afterwards, done. |
# |
Jun 10th 2018, 14:59 |
jeremyharris |
(that will also tell you what files you need to replace in order to use it) |
# |
Jun 10th 2018, 14:52 |
jeremyharris |
ok, I would take a look at this, which will help you migrate towards using it: https://book.cakephp.org/3.0/en/development/application.html#adding-http-stack |
# |
Jun 10th 2018, 14:52 |
gannher |
wife are terrible :D . i can't work on my project too -_-' |
# |
Jun 10th 2018, 14:51 |
kitcat711_ |
(brb, wife calling) |
# |
Jun 10th 2018, 14:50 |
kitcat711_ |
no |
# |
Jun 10th 2018, 14:50 |
jeremyharris |
are you already using the Application class for middleware? |
# |
Jun 10th 2018, 14:50 |
kitcat711_ |
or keep my "old structure" and modify my code |