# |
Jul 4th 2018, 16:44 |
flavius |
such confuse. |
# |
Jul 4th 2018, 16:44 |
flavius |
i always get it the 2nd or 3rd try myself, never the 1st try |
# |
Jul 4th 2018, 16:43 |
flavius |
heaven forbid you pluralize the model word to models, that wouldn't work either :P |
# |
Jul 4th 2018, 16:00 |
neon1024 |
Much confuse yo. |
# |
Jul 4th 2018, 16:00 |
neon1024 |
Seems I was looking for `$ bin/cake bake model all --no-fixture --no-test` |
# |
Jul 4th 2018, 15:58 |
neon1024 |
I mean it even says ‘BAKE. ALL. MODEL.’ and then bakes templates?! :shocked_face_with_exploding_head: |
# |
Jul 4th 2018, 15:58 |
neon1024 |
Seems it’s spreading to bake too |
# |
Jul 4th 2018, 15:57 |
neon1024 |
I tell you, bin/cake has gone down the shitter in the last few releases |
# |
Jul 4th 2018, 15:57 |
neon1024 |
:face_with_rolling_eyes: |
# |
Jul 4th 2018, 15:57 |
neon1024 |
Right |
# |
Jul 4th 2018, 15:57 |
neon1024 |
Ah, and then it bakes all the templates as well anyway despite me specifying a model |
# |
Jul 4th 2018, 15:56 |
neon1024 |
That just lists models and makes me pick |
# |
Jul 4th 2018, 15:56 |
neon1024 |
I thought that it was this, `$ bin/cake bake all model` but it isn’t |
# |
Jul 4th 2018, 15:56 |
neon1024 |
Can I bake all the models and entities at once? I don’t want controllers or templates though |
# |
Jul 4th 2018, 15:41 |
james.phillips |
I might put them into routes....but its just a loop so bit messy |
# |
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" |