# |
Jul 18th 2018, 11:15 |
mr.mjsm |
is it doable? |
# |
Jul 18th 2018, 11:15 |
mr.mjsm |
guys I have a table "b" that depends on table "a". now I want to change the controller for "a" so that I can force at least one entry in "b" for "a" |
# |
Jul 18th 2018, 11:14 |
neon1024 |
@okelet It’s either array or null, as shown in the book and the source code |
# |
Jul 18th 2018, 10:56 |
snake-venom |
? |
# |
Jul 18th 2018, 10:56 |
snake-venom |
for each domain i need to create separate " location " in nginx config |
# |
Jul 18th 2018, 10:55 |
chris-andre |
@snake, you'll probably point to the public folder for each app. /plugins/app1/webroot, /plugins/app2/webroot. (https://gist.github.com/chris-andre/c447c3508d02d1e1dfdb5c5616b22f46) |
# |
Jul 18th 2018, 10:55 |
snake-venom |
you send me this |
# |
Jul 18th 2018, 10:55 |
chris-andre |
hi |
# |
Jul 18th 2018, 09:58 |
okelet |
Hi, when the user session has expired, the isAuthroized method is called? With a null user? Should I check if user is null or does isAuthorized method always receive a non-null user? |
# |
Jul 18th 2018, 09:56 |
saeideng |
abstract is good |
# |
Jul 18th 2018, 09:55 |
josbeir |
i needed it as abstract as possible (no direct ties with the ORM) so i could freely use different persistence implementations |
# |
Jul 18th 2018, 09:54 |
josbeir |
tnx, i'm planning on writing some suplemental plugins for it |
# |
Jul 18th 2018, 09:53 |
saeideng |
looks it is great :$ ( I just read docs ) |
# |
Jul 18th 2018, 09:49 |
josbeir |
7.1 even... |
# |
Jul 18th 2018, 09:49 |
saeideng |
thank you for your work :+1: |
# |
Jul 18th 2018, 09:49 |
josbeir |
;) |
# |
Jul 18th 2018, 09:49 |
saeideng |
no problem |
# |
Jul 18th 2018, 09:48 |
saeideng |
I can not use now :yum: |
# |
Jul 18th 2018, 09:48 |
josbeir |
i dont look back ! |
# |
Jul 18th 2018, 09:48 |
josbeir |
yes sorry :P |
# |
Jul 18th 2018, 09:48 |
saeideng |
it is php 7 only |
# |
Jul 18th 2018, 09:46 |
josbeir |
@bogdan https://github.com/josbeir/cakephp-filesystem#using-your-own-entities |
# |
Jul 18th 2018, 09:41 |
josbeir |
please share your experiences and or issues if they arise |
# |
Jul 18th 2018, 09:41 |
josbeir |
there's a small piece of documentation on how to swap entities in the readme @bogdan |
# |
Jul 18th 2018, 09:40 |
josbeir |
its not an 'automagic' aproach, its pretty abstract |
# |
Jul 18th 2018, 09:40 |
josbeir |
@bogdan yes probably altough keep in mind that it is pretty abstract so i't will probably require a minimal set of code to make it work |
# |
Jul 18th 2018, 09:39 |
josbeir |
yes |
# |
Jul 18th 2018, 09:39 |
saeideng |
@josbeir is your plugin in awesome-cakephp list ? |
# |
Jul 18th 2018, 09:39 |
madbbb |
@josbeir so if I add my own entity from database model it will behave like a database entry with transparent delete and auto load with associations? |
# |
Jul 18th 2018, 09:38 |
neon1024 |
Yeah, turns out the entities in the association are dirty, but the parent entity association property is not |
# |
Jul 18th 2018, 09:37 |
josbeir |
pick one that fits your needs |
# |
Jul 18th 2018, 09:37 |
josbeir |
its on the awesome-cakephp list, many ones to pick |
# |
Jul 18th 2018, 09:37 |
josbeir |
@bogdan if you want a quick dropin solution you can save those entities somewhere in a json type field in your db :slightly_smiling_face: |
# |
Jul 18th 2018, 09:37 |
mr.mjsm |
@josbeir i am planning to make an upload center in my project. can I use your plugin ? if so can you gimme the link |
# |
Jul 18th 2018, 09:36 |
neon1024 |
So if I’ve changed the `propertyName` it won’t persist? |
# |
Jul 18th 2018, 09:36 |
neon1024 |
https://book.cakephp.org/3.0/en/orm/saving-data.html#saving-hasmany-associations |
# |
Jul 18th 2018, 09:35 |
mr.mjsm |
@josbeir ok good, i will try to work it out somehow, just relieved that the problem is not in the code |
# |
Jul 18th 2018, 09:35 |
josbeir |
setup* |
# |
Jul 18th 2018, 09:35 |
josbeir |
i'm currently using it in an elasticsearch setu |
# |
Jul 18th 2018, 09:35 |
josbeir |
maybe i'll make a behavior in the future as a seperate plugin |
# |
Jul 18th 2018, 09:35 |
josbeir |
the plugin itself doesn't implement any orm persistence though, you need to do that stuff yourself |