# |
May 26th 2016, 12:34 |
ionas |
bake some cake |
# |
May 26th 2016, 12:34 |
ionas |
make some cake |
# |
May 26th 2016, 12:34 |
ionas |
make it to cakefest |
# |
May 26th 2016, 12:34 |
spriz |
@neon1024: thatâ??s how Iâ??ve been using it as well :P |
# |
May 26th 2016, 12:33 |
spriz |
did make wat @ionas? :P |
# |
May 26th 2016, 12:16 |
ionas |
frzrr: you want a primary key that is called id without autoincrement? |
# |
May 26th 2016, 12:16 |
Neon1024x |
Spriz, Oh, I don't use Crud-view - I just use it for the helpers mostly, with my bake theme |
# |
May 26th 2016, 12:16 |
ionas |
spriz did you make it btw? |
# |
May 26th 2016, 12:15 |
spriz |
Neon, do you take use of the cake template/view engine as much as eg. crud-view - https://github.com/FriendsOfCake/crud-view/tree/master/src |
# |
May 26th 2016, 12:14 |
ionas |
nodes: instance_id, id, parent_id, lft, rght, created, modified, foreign_table, foreign_key â?¦ and then it gets hard on questions of design: â?¦ name? icon_path? |
# |
May 26th 2016, 12:14 |
Neon1024x |
Spriz, I use it for all my admin areas |
# |
May 26th 2016, 12:11 |
spriz |
it says this in the readme: `NOTE: Check tests for more examples` but I canâ??t really see alot.. am I missing something? |
# |
May 26th 2016, 12:10 |
spriz |
After been messing around with it, I feel like weâ??ve completely misunderstood cakeâ??s view engine, so I want to look a bit more into it |
# |
May 26th 2016, 12:10 |
spriz |
anyoneâ??s using https://github.com/FriendsOfCake/bootstrap-ui? :slightly_smiling_face: |
# |
May 26th 2016, 12:08 |
frzrr |
works if i create the column, add the index and then set auto increment to it |
# |
May 26th 2016, 12:08 |
frzrr |
that seems very much like a bug |
# |
May 26th 2016, 12:04 |
ionas |
(in the table) |
# |
May 26th 2016, 12:04 |
ionas |
would you put links in there, icons? |
# |
May 26th 2016, 12:04 |
ionas |
I want to manage menus / navigations |
# |
May 26th 2016, 12:04 |
ionas |
frzrr: so where ya! |
# |
May 26th 2016, 12:03 |
frzrr |
ah, good idea i'll try that |
# |
May 26th 2016, 12:02 |
bernat1 |
the=then |
# |
May 26th 2016, 12:02 |
bernat1 |
In that case I'd use a manual query. |
# |
May 26th 2016, 12:02 |
bernat1 |
the problem is that Phinx will first set auto-increment the add the index |
# |
May 26th 2016, 12:02 |
frzrr |
doesn't work either |
# |
May 26th 2016, 12:01 |
frzrr |
yea, trying to set an index on the column with type of key |
# |
May 26th 2016, 12:01 |
bernat1 |
maybe having an index on that column is enough. |
# |
May 26th 2016, 12:00 |
frzrr |
lol.... |
# |
May 26th 2016, 12:00 |
frzrr |
or not, only worked in the sql client |
# |
May 26th 2016, 11:59 |
frzrr |
column only needs to be int and it works fine. |
# |
May 26th 2016, 11:59 |
frzrr |
works fine when altering the table manually |
# |
May 26th 2016, 11:59 |
frzrr |
nope |
# |
May 26th 2016, 11:59 |
bernat1 |
frzrr: I think autoincrement can be set only on primary key fields when using MySQL. |
# |
May 26th 2016, 11:51 |
frzrr |
should be the same though |
# |
May 26th 2016, 11:51 |
frzrr |
ah this is non shell |
# |
May 26th 2016, 11:50 |
frzrr |
"autoIncrement" is not a valid column option. |
# |
May 26th 2016, 11:49 |
Neon1024x |
Yeah Cake wraps some of the Phinx methods |
# |
May 26th 2016, 11:49 |
frzrr |
hmm, see some new functions here though |
# |
May 26th 2016, 11:48 |
frzrr |
thats exactly what i've done except through phinx |
# |
May 26th 2016, 11:48 |
frzrr |
yep |
# |
May 26th 2016, 11:46 |
Neon1024x |
http://book.cakephp.org/3.0/en/migrations.html#creating-custom-primary-keys |