# |
Mar 1st 2018, 16:28 |
savant |
wouterdt: dont worry, we saw hunter2 |
# |
Mar 1st 2018, 16:28 |
joe |
this is for associated data. Any ideas? |
# |
Mar 1st 2018, 16:28 |
joe |
hey I'm using jquery to dynamically create form input elements, but the data isn't being passed into my controller from these input fields. I passed the name of the dynamically created field to unlockField but it's still not going through. |
# |
Mar 1st 2018, 16:28 |
alexmax |
welp |
# |
Mar 1st 2018, 16:27 |
wouterdt |
that was not very smart :P |
# |
Mar 1st 2018, 16:27 |
savant |
wouter scouter |
# |
Mar 1st 2018, 16:27 |
wouterdt |
msg NickServ identify 100880102 |
# |
Mar 1st 2018, 16:27 |
alexmax |
heh |
# |
Mar 1st 2018, 16:22 |
savant |
nothing |
# |
Mar 1st 2018, 16:22 |
alexmax |
@savant What's so funny about it, other than the name? |
# |
Mar 1st 2018, 16:22 |
angelxmoreno |
rolf |
# |
Mar 1st 2018, 16:22 |
savant |
a very expensive version of postgres |
# |
Mar 1st 2018, 16:22 |
angelxmoreno |
what us a sql server ? |
# |
Mar 1st 2018, 16:21 |
savant |
thats from sql server |
# |
Mar 1st 2018, 16:21 |
savant |
smallmoney(10) is the best data type |
# |
Mar 1st 2018, 16:21 |
angelxmoreno |
savant is typing |
# |
Mar 1st 2018, 16:21 |
angelxmoreno |
glad you solved it |
# |
Mar 1st 2018, 16:21 |
slackebot1 |
Action: alexmax shrugs |
# |
Mar 1st 2018, 16:21 |
alexmax |
*shrug* |
# |
Mar 1st 2018, 16:21 |
alexmax |
but a....smallint(6)? |
# |
Mar 1st 2018, 16:21 |
angelxmoreno |
ah ok |
# |
Mar 1st 2018, 16:21 |
alexmax |
The database field was not a tinyint(1) |
# |
Mar 1st 2018, 16:21 |
angelxmoreno |
do teel |
# |
Mar 1st 2018, 16:21 |
alexmax |
It was a problem with the DB |
# |
Mar 1st 2018, 16:21 |
alexmax |
I figured it out |
# |
Mar 1st 2018, 16:20 |
angelxmoreno |
@alexmax have you inspected the entity and checked if the fields are protected ? |
# |
Mar 1st 2018, 15:55 |
alexmax |
including those that have underscores at the start |
# |
Mar 1st 2018, 15:54 |
alexmax |
and other fields seem to work just fine |
# |
Mar 1st 2018, 15:54 |
alexmax |
interesting - the field is dirty, in spite of the value not being set |
# |
Mar 1st 2018, 15:25 |
angelxmoreno |
but I do want to ask you @alexmax . I want to ask you specifically |
# |
Mar 1st 2018, 15:02 |
alexmax |
Just how the schema was created |
# |
Mar 1st 2018, 15:01 |
alexmax |
Don't ask me. :P |
# |
Mar 1st 2018, 15:01 |
dereuromark |
why the prefix underscore? |
# |
Mar 1st 2018, 14:58 |
alexmax |
@dereuromark https://paste.ee/p/GK6mH - the field in question is `_all_day`. It's boolean true here, but when I newEntity() with the data as a parameter, it is set to **NULL** |
# |
Mar 1st 2018, 14:43 |
dereuromark |
also note, that you are not patching here, newEntity() does patch, so you should check errors on $entity returned, maybe it couldnt due to validation errors? |
# |
Mar 1st 2018, 14:43 |
dereuromark |
you need to pastebin how your $data looks like |
# |
Mar 1st 2018, 14:36 |
alexmax |
That seems like a bug to me....guess I deserve it for still using 3.2.9. |
# |
Mar 1st 2018, 14:36 |
alexmax |
But if I do `$entity = $this->DocumentsTable->DocumentDates->newEntity(); $entity->set($data)`, it populates. |
# |
Mar 1st 2018, 14:35 |
alexmax |
I found a field that will not populate with ` $entity = $this->DocumentsTable->DocumentDates->newEntity($data);` |
# |
Mar 1st 2018, 14:35 |
alexmax |
Wow, this is nutty |
# |
Mar 1st 2018, 14:05 |
jbehling |
I load the Helper in *AppView* |