# |
Jul 4th 2018, 15:41 |
james.phillips |
so am I at the moment... |
# |
Jul 4th 2018, 15:40 |
okelet |
i didn't know you can put definitions in the route file, i was doing that in the controller... |
# |
Jul 4th 2018, 15:40 |
okelet |
thanks!!! |
# |
Jul 4th 2018, 15:38 |
james.phillips |
https://gist.githubusercontent.com/nostah/d610459d50564c729c56/raw/8d3348d2c29bf94a5ca5e88ba1801c95b3ecd308/gistfile1.php |
# |
Jul 4th 2018, 15:37 |
okelet |
do you have some examples of the phpdoc definitions? |
# |
Jul 4th 2018, 15:35 |
james.phillips |
just its giving me an error on another server... |
# |
Jul 4th 2018, 15:35 |
james.phillips |
I'm just have it running in my vagrant box |
# |
Jul 4th 2018, 15:34 |
james.phillips |
is very cool |
# |
Jul 4th 2018, 15:33 |
okelet |
@james.phillips i am reading about that right now too |
# |
Jul 4th 2018, 15:08 |
james.phillips |
Hi does anyone know about alt3/swagger ? |
# |
Jul 4th 2018, 14:28 |
josbeir |
cant you flatten it and then run saveall ? |
# |
Jul 4th 2018, 14:28 |
josbeir |
that wont work probably cake doesn't know what to do with that |
# |
Jul 4th 2018, 14:27 |
josbeir |
just saw your dataset, you are trying to save nested data of the same model type |
# |
Jul 4th 2018, 14:27 |
josbeir |
so maybe something is wrong with your association setup |
# |
Jul 4th 2018, 14:26 |
josbeir |
yeah if your assocs are setup correctly it and cake knows what to do with the children it should work |
# |
Jul 4th 2018, 14:25 |
GuilhermeD |
Ex: array(item => array(item => array(item))) |
# |
Jul 4th 2018, 14:25 |
GuilhermeD |
josbeir: Just for you know, it can be multi-level. |
# |
Jul 4th 2018, 14:24 |
GuilhermeD |
SQL Query: INSERT INTO `sesa_migracao_organograma`.`organograma_item` (`organograma_item_fk`) VALUES (39) |
# |
Jul 4th 2018, 14:24 |
josbeir |
in theory it should work if the dataset is compatible |
# |
Jul 4th 2018, 14:24 |
josbeir |
with an error? |
# |
Jul 4th 2018, 14:24 |
GuilhermeD |
josbeir: I've tryed saveAssociated with deep set as true. But when it try to saves a 2nd level, it breaks. |
# |
Jul 4th 2018, 14:23 |
josbeir |
https://book.cakephp.org/2.0/en/models/saving-your-data.html#model-saveall-array-data-null-array-options-array |
# |
Jul 4th 2018, 14:23 |
josbeir |
saveAll() ? |
# |
Jul 4th 2018, 14:22 |
GuilhermeD |
Yes |
# |
Jul 4th 2018, 14:22 |
josbeir |
GuilHermeD: cake 2 i assume ? |
# |
Jul 4th 2018, 14:22 |
GuilhermeD |
In table organograma_item, i have the field "organograma_item_parent_fk" |
# |
Jul 4th 2018, 14:21 |
GuilhermeD |
Hi! https://pastebin.com/yNMxgZ4c - Is there a way to save it recursively? They are relationed by the same model. |
# |
Jul 4th 2018, 14:20 |
josbeir |
@ojtibi you mean, for instance an extended class of the CakeRequest class ? |
# |
Jul 4th 2018, 13:59 |
ojtibi |
Hello! Has anyone here tried to replace CakeRequest without overwriting the core? I'm on 2.x at the moment and trying to replace it with an app-specific one. I saw Mark Story's post that it's possible to do it with CakeResponse, but I haven't seen anything like it for CakeRequest. |
# |
Jul 4th 2018, 13:58 |
mark |
Hi @admad, I'm curious if there's a way to do it on AppController. :) seems possible. |
# |
Jul 4th 2018, 13:56 |
ojtibi |
:wave: |
# |
Jul 4th 2018, 13:55 |
neon1024 |
Is this a bad plan? |
# |
Jul 4th 2018, 13:55 |
neon1024 |
So I could literally get the children of that block, so it would work like actual inheritance |
# |
Jul 4th 2018, 13:54 |
neon1024 |
I was thinking perhaps parent child self referencing association in ScriptBlocks? |
# |
Jul 4th 2018, 13:54 |
neon1024 |
The requirement is that they inherit from a Master Script, and blocks can be individually overwritable in child scripts |
# |
Jul 4th 2018, 13:53 |
neon1024 |
I have a software requirement that I’m struggling to figure out. I am creating Scripts, a spoken script this is. They are comprised of Script Blocks. |
# |
Jul 4th 2018, 13:25 |
josbeir |
i think i only used that once or twice myself |
# |
Jul 4th 2018, 13:25 |
lubos |
i am sure it is :slightly_smiling_face: will have more play when there is time :slightly_smiling_face: |
# |
Jul 4th 2018, 13:25 |
josbeir |
it is more straightforward but mapreduce is pretty powerfull too :slightly_smiling_face: |
# |
Jul 4th 2018, 13:25 |
lubos |
in compare to mapReduce |
# |
Jul 4th 2018, 13:24 |
lubos |
I think so too, for me it is much easier to use |