# |
Jun 13th 2019, 13:14 |
noel |
Is there a bake command to delete scaffolding? |
# |
Jun 13th 2019, 13:09 |
awi |
I considered this way, but it is sort of unhandy. |
# |
Jun 13th 2019, 13:07 |
awi |
Well I am trying to find out if something may be associated authorization-wise... |
# |
Jun 13th 2019, 13:06 |
inoas |
https://book.cakephp.org/3.0/en/orm/associations.html#using-the-through-option |
# |
Jun 13th 2019, 13:06 |
office |
@conehead I exported Cake DB and copied the code to local machine. I ran DB and changed settings in the database.php. Now there are two things i am not sure about - do i need to run `php composer.phar update` in the XAMPP Shell and how will i understand that it is ok? |
# |
Jun 13th 2019, 13:06 |
inoas |
and for the relationship use through |
# |
Jun 13th 2019, 13:06 |
inoas |
and use existsIn |
# |
Jun 13th 2019, 13:06 |
inoas |
awi my gut tells me: setup the join table as a real table class |
# |
Jun 13th 2019, 13:03 |
awi |
hi. just another question from me... Can I somehow pass the _ids provided for a belongsToMany association through buildRules? Or any other sort of Validation alike? |
# |
Jun 13th 2019, 12:43 |
inoas |
it seems that the initial form always and only builds on validationDefault() even if you specify another key in validates it also executes the default |
# |
Jun 13th 2019, 12:43 |
inoas |
so I want to setup another validationX method in my table for the default validation e.g. fetching if a field is required=>true etc |
# |
Jun 13th 2019, 12:23 |
stephenzgalbraith |
Anyone have anymore links or guides for implementing Elasticsearch? I tried for some hours last night to no avail between the book and GitHub readmes |
# |
Jun 13th 2019, 12:20 |
martin |
yes this is the same problem :P |
# |
Jun 13th 2019, 12:19 |
dereuromark |
as I do with enums ;) yeah |
# |
Jun 13th 2019, 12:19 |
martin |
and I can also use it always in the view |
# |
Jun 13th 2019, 12:19 |
martin |
hmm there you have a good point :) |
# |
Jun 13th 2019, 12:17 |
dereuromark |
the other way around is not valid IMO |
# |
Jun 13th 2019, 12:17 |
dereuromark |
why isnt it inside the entity in the first place? Then tables can use it by asking for it on the entity |
# |
Jun 13th 2019, 12:16 |
martin |
I have an array inside a table object, now I want that to use that array in the entity. can I reach that array somehow? |
# |
Jun 13th 2019, 11:26 |
admad |
@neon1024 I hope ICC is enjoying the revenue loss |
# |
Jun 13th 2019, 11:19 |
np |
@admad>> https://stackoverflow.com/questions/56578821/cakephp-3-5-18-jwt-authentication-fails |
# |
Jun 13th 2019, 10:18 |
neon1024 |
@admad :flag-in: v :flag-nz: :umbrella_with_rain_drops: :cricket_bat_and_ball: :,( |
# |
Jun 13th 2019, 09:53 |
conehead |
Short version: Through data is trying to create duplicate unique keys and I do not know why |
# |
Jun 13th 2019, 09:48 |
conehead |
Hm mark maybe you have a minute to have a look at this. Somehow I cannot get this working with my through association. I created an issue (but just noticed it is working with your tag plugin and closed it again) https://github.com/cakephp/cakephp/issues/13344 |
# |
Jun 13th 2019, 09:46 |
dereuromark |
See queue plugin how it does it |
# |
Jun 13th 2019, 09:39 |
yamcomnet |
maybe just use Symphonys one? https://symfony.com/doc/current/components/process.html |
# |
Jun 13th 2019, 09:25 |
yamcomnet |
is it just exec() inside console command? |
# |
Jun 13th 2019, 09:25 |
yamcomnet |
still not sure howto run system commands from cake? |
# |
Jun 13th 2019, 09:03 |
conehead |
https://book.cakephp.org/2.0/en/development/configuration.html |
# |
Jun 13th 2019, 09:02 |
conehead |
probably `database.php` |
# |
Jun 13th 2019, 09:02 |
office |
by config files you mean paths.php? |
# |
Jun 13th 2019, 09:00 |
conehead |
Probably you can just copy over the folder from your server to your local xampp folder and adjust the config file(s) |
# |
Jun 13th 2019, 08:53 |
office |
@noel @conehead Thank you. I use XAMPP and ihave the DB exported with Heidi SQL, but i really tought i am closer to fixing that. |
# |
Jun 13th 2019, 08:45 |
dereuromark |
sure |
# |
Jun 13th 2019, 08:44 |
yamcomnet |
is this somehow right way to do it? |
# |
Jun 13th 2019, 08:44 |
yamcomnet |
https://book.cakephp.org/3.0/en/console-and-shells/commands.html#creating-a-command |
# |
Jun 13th 2019, 08:44 |
yamcomnet |
need to execute binary application exec() |
# |
Jun 13th 2019, 08:41 |
noel |
@office you need a local stack on your computer that matches the server stack. You can probably use MAMP PRO for example. Then you need to export and clone the database using either mysql cli or workstation. Then you probably want to zip the code up and copy it to your local machine. Then there will be some config, e.g. database settings. Sounds like you're really jumping into the deep end though... I'd be wanting to start in the shallows. |
# |
Jun 13th 2019, 08:34 |
office |
Anywhere to look for instructions? |
# |
Jun 13th 2019, 08:33 |
office |
Well that is too advanced for me. I have no idea how to do it. |
# |
Jun 13th 2019, 08:31 |
conehead |
Yes but I guess you should not update it on a live server. Don't you have a local copy where you can test? Randomly updating packages without testing them might screw stuff up |