# |
Nov 28th 2017, 18:48 |
spitfire2 |
Hello? |
# |
Nov 28th 2017, 17:51 |
joopm |
also the teachers |
# |
Nov 28th 2017, 17:50 |
joopm |
its shows the coteachers by the associations |
# |
Nov 28th 2017, 17:50 |
joopm |
but i can see if debug($this->teachers) |
# |
Nov 28th 2017, 17:49 |
joopm |
ohm still not good by changeing class to className |
# |
Nov 28th 2017, 17:49 |
casmo |
Search for 'UnapprovedComments' |
# |
Nov 28th 2017, 17:48 |
casmo |
Joop: Check the documentation: https://book.cakephp.org/3.0/en/orm/associations.html# |
# |
Nov 28th 2017, 17:47 |
joopm |
oh Teacher was just a misspelling thank you |
# |
Nov 28th 2017, 17:42 |
casmo |
And use Teachers instead of Teacher in your first association |
# |
Nov 28th 2017, 17:42 |
casmo |
Joop, you should use className instead of class. |
# |
Nov 28th 2017, 17:34 |
joopm |
do you have any idea? |
# |
Nov 28th 2017, 17:21 |
obinoob |
neon1024 not sure whats happening really the data is coming from a ajax request it's hard to debug... |
# |
Nov 28th 2017, 17:15 |
joopm |
what can be wrong? |
# |
Nov 28th 2017, 17:08 |
joopm |
here is the tables https://pastebin.com/8WfJLiNt |
# |
Nov 28th 2017, 17:07 |
rudy1976s |
because i need to have a different setup for every combination of themes and I have a plugin used to configure settings so i was wondering if there would be a way to configure that ini from another plugin and reference it from there |
# |
Nov 28th 2017, 17:05 |
rudy1976s |
sorry typo: ini file |
# |
Nov 28th 2017, 17:03 |
neon1024 |
Do you mean the plugin bootstrap? |
# |
Nov 28th 2017, 17:03 |
neon1024 |
What’s an init file? |
# |
Nov 28th 2017, 17:03 |
rudy1976s |
I am trying to install mark story's asset compress: is there a way to configure the init file in a plugin ? |
# |
Nov 28th 2017, 17:02 |
rudy1976s |
Good evening |
# |
Nov 28th 2017, 17:02 |
neon1024 |
So you’re saying INSERT (foo, bar) VALUES (‘asdf’, ) |
# |
Nov 28th 2017, 17:02 |
neon1024 |
My guess would be that one of the values you’re trying to insert is `null` |
# |
Nov 28th 2017, 17:02 |
casmo |
Paste your problems here, joop, so we can all help |
# |
Nov 28th 2017, 17:00 |
obinoob |
neon1024 I'm getting a PDO Exception "SQLSTATE[21S01]: Insert value list does not match column list: 1136 Column count doesn't match value count at row 1" can you spot anything suspicious? |
# |
Nov 28th 2017, 16:58 |
joopm |
thank you neon |
# |
Nov 28th 2017, 16:57 |
obinoob |
neon1024 lol yes |
# |
Nov 28th 2017, 16:54 |
neon1024 |
joopm, Can you pastebin your table associations? |
# |
Nov 28th 2017, 16:54 |
neon1024 |
Just a guess, but you probably meant `newQuery()` |
# |
Nov 28th 2017, 16:54 |
neon1024 |
obinoob, https://gist.github.com/anonymous/f50fd972d94795f75ba91b6c321dd91b#file-controller-php-L14 |
# |
Nov 28th 2017, 16:48 |
joopm |
when try to use it in the contain |
# |
Nov 28th 2017, 16:48 |
joopm |
but i have an error : SQLSTATE[42S02]: Base table or view not found: |
# |
Nov 28th 2017, 16:48 |
joopm |
Sender,and Receiver |
# |
Nov 28th 2017, 16:48 |
joopm |
i made 2 different type of association to the same model(belongsto,belongstoMany) |
# |
Nov 28th 2017, 16:36 |
obinoob |
I'm getting: Call to a member function insert() on null this is my code : https://gist.github.com/anonymous/f50fd972d94795f75ba91b6c321dd91b |
# |
Nov 28th 2017, 15:49 |
neon1024 |
Cool, well I’ll make a note on my issue and get that closed |
# |
Nov 28th 2017, 15:46 |
neon1024 |
Ah cool, yeah I think this is what I was looking for :slightly_smiling_face: https://github.com/UseMuffin/Slug/blob/master/tests/TestCase/Model/Behavior/SlugBehaviorTest.php#L123-L126 |
# |
Nov 28th 2017, 15:46 |
admad |
Earlier the behavior just bailed out when slug field was dirty (aka preset) |
# |
Nov 28th 2017, 15:45 |
admad |
Guess i forgot to add it to readme when i added that option few months ago |
# |
Nov 28th 2017, 15:44 |
admad |
can copy it from the docblock https://github.com/UseMuffin/Slug/blob/master/src/Model/Behavior/SlugBehavior.php#L46 |
# |
Nov 28th 2017, 15:43 |
admad |
yes |
# |
Nov 28th 2017, 15:43 |
neon1024 |
Does `onDirty` need adding to the docs? https://github.com/UseMuffin/Slug#configuration |