# |
Sep 5th 2019, 08:19 |
neon1024 |
Boris wanted to do it, and I guess they’re going to keep him in there until he does, somehow |
# |
Sep 5th 2019, 08:19 |
neon1024 |
MP’s denied the bill for a General Election too |
# |
Sep 5th 2019, 08:18 |
neon1024 |
I just want :sunny: for :cricket_bat_and_ball: instead of :umbrella_with_rain_drops: |
# |
Sep 5th 2019, 08:17 |
neon1024 |
@admad I’m not too sure actually. Now that Bojo has lost the majority the rest of the house has passed a bill to prevent a No Deal. So it will happen, but probably be delayed again |
# |
Sep 5th 2019, 08:07 |
conehead |
Well yes, that might be true. Still this is some really strange behavior. Still it should imho be possible. |
# |
Sep 5th 2019, 08:04 |
admad |
unless you are a masochist you shouldn't try to use char fields to store both int and char foreign keys |
# |
Sep 5th 2019, 08:03 |
slackebot |
debug it but only for `int(11)` the entity `TagsTagged` is set to `isNew`, but not for `char(36)` https://github.com/cakephp/cakephp/blob/9c1591001cd92e9d4ad9ed354c769514b0a61ee3/src/ORM/Association/BelongsToMany.php#L847 |
# |
Sep 5th 2019, 08:03 |
conehead |
@dereuromark I am using it the way you use it in your sandbox (and usually it is working) I have to say I changed the foreign key from `int(11)` to `char(36)` so I could link it with both. When leaving it as `int(11)` it works fine with linked id foreign keys. When changing it to `char(36)` it works with entitys that have a uuid. But then it won't work with ids `int(11)` anymore as duplicate entries are created. Currently I am trying to |
# |
Sep 5th 2019, 07:58 |
admad |
is it gonna still happen now that joker lost majority? |
# |
Sep 5th 2019, 07:57 |
admad |
morning brexiter! |
# |
Sep 5th 2019, 07:56 |
neon1024 |
Morning everyone :wave: |
# |
Sep 5th 2019, 07:47 |
Fasti |
I think i have found where it is overriding from ... time to test some fixes. Thanks for reading anyway |
# |
Sep 5th 2019, 07:45 |
Fasti |
oh maybe i should put it in layout not template |
# |
Sep 5th 2019, 07:41 |
Fasti |
i know its coming from bootstrap.php for the title. I tried adding a header and title to the template and it still overrides. so i tried $this->pageTitle = in the controller and using that in the template but bootstrap seems to come after for some reason... |
# |
Sep 5th 2019, 07:37 |
Fasti |
inherited site, trying to decipher and learn cake while addressing simpler things |
# |
Sep 5th 2019, 07:37 |
dereuromark |
Conehead |
# |
Sep 5th 2019, 07:37 |
dereuromark |
How are you building your entity data? Maybe sth is off here. |
# |
Sep 5th 2019, 07:34 |
Fasti |
adding a head title section doesnt seem to override it so i gather its being called by a controller ? |
# |
Sep 5th 2019, 07:34 |
Fasti |
Bootstrap theme has a title parameter which i want to override or append to in my templates on certain pages. is there a right way to do this? |
# |
Sep 5th 2019, 07:04 |
conehead |
Is this a bug in Cake? |
# |
Sep 5th 2019, 07:00 |
conehead |
ffs....uuids again. What a strange behavior |
# |
Sep 5th 2019, 06:44 |
conehead |
If I remove that key, the joindata will be saved MAXIMUM twice. After that one line will be deleted and another one is created |
# |
Sep 5th 2019, 06:43 |
conehead |
there is a unique key over 2 columns: https://github.com/dereuromark/cakephp-tags/blob/f5f89c68bbf73af67c236091a36584a6ca16cc51/config/Migrations/20180113144821_MigrationTagsInit.php#L94 |
# |
Sep 5th 2019, 06:38 |
alexdd55976 |
what happens if you set the DB field to unique? |
# |
Sep 5th 2019, 06:24 |
conehead |
Summary: Cake tries to create joinData although it already exists |
# |
Sep 5th 2019, 06:20 |
conehead |
Good gosh. Same old error just popped up. Anyone working with joinData? I am trying to save my entity with a `tag` (join table `tagged`) The entity, the `tag` entity and the tagged `entity` are `[new] = false` and have the appropriate ids. Still when I am trying to save the entity, cake tries to create new joinData, which results in a duplicate unique key error. Slowly I am out of ideas. (using https://github.com/dereuromark/cakephp-tags) |
# |
Sep 5th 2019, 05:44 |
conehead |
morning |
# |
Sep 5th 2019, 05:36 |
alexdd55976 |
Morning |
# |
Sep 5th 2019, 05:33 |
javier.villanueva |
morning all |
# |
Sep 5th 2019, 05:23 |
conehead |
@dereuromark I was never really aware of the command support of PHPStorm. Maybe this would be another nice enhancement for your ide helper? https://github.com/skie/PhpStorm At least for me this is not working anymore unfortunately |
# |
Sep 5th 2019, 02:32 |
Fastidius |
cheers. New to cake so making sure my thought process isn't flawed before going down a rabbit hole |
# |
Sep 5th 2019, 02:30 |
challgren |
When you do your first post via ajax return the id on save and update the js to have the id and then issue “edits” to update the entity |
# |
Sep 5th 2019, 02:30 |
Fastidius |
ok so i can java script it but then i need the post to not create a new entity just patch the existing ie treat it like an edit? |
# |
Sep 5th 2019, 02:28 |
admad |
that's a JavaScript issue not a PHP one |
# |
Sep 5th 2019, 02:23 |
Fastidius |
Hi all, Interesting problem i am trying to resolve. Have a form which people submit in but they also sometimes click away to other websites and lose their work in progress. is there a way to auto post a form in cake so it works like an auto save function? |
# |
Sep 4th 2019, 23:28 |
challgren |
I misunderstood how the annotations worked, I assumed it looked in the controller |
# |
Sep 4th 2019, 23:28 |
challgren |
Make senses |
# |
Sep 4th 2019, 23:28 |
challgren |
Ahh ok |
# |
Sep 4th 2019, 23:27 |
dereuromark |
your example is invalid as magic var dont have to annotated if they are not directly used. no point. |
# |
Sep 4th 2019, 23:27 |
dereuromark |
yeah, only real variables count at this point. |
# |
Sep 4th 2019, 23:26 |
challgren |
Just did |