# |
Nov 30th 2017, 11:46 |
ksandeep_ |
Your object include Associated data or not |
# |
Nov 30th 2017, 11:45 |
ksandeep_ |
share debug data from $clients at line32 |
# |
Nov 30th 2017, 11:44 |
obinoob |
ksandeep_: clients controller: https://gist.github.com/obinoob/80b2ebcd4d5906e3f3b0fee214bb47dc |
# |
Nov 30th 2017, 11:44 |
obinoob |
ksandeep_: address table: https://gist.github.com/obinoob/46ca79a8dcdda54ca07695b2b8e6d1e3 |
# |
Nov 30th 2017, 11:43 |
obinoob |
ksandeep_: client table: https://gist.github.com/obinoob/7d52bd0fbc89533c50f20cb544323e0d |
# |
Nov 30th 2017, 11:43 |
h.mavisakalian |
I am running version 3.5 |
# |
Nov 30th 2017, 11:43 |
h.mavisakalian |
now I want to get the ID of that record so I can Retrieve and update it |
# |
Nov 30th 2017, 11:43 |
obinoob |
ksandeep_: address entity: https://gist.github.com/obinoob/44029d2f2bffd2906a2280b3a9a3752b |
# |
Nov 30th 2017, 11:43 |
obinoob |
ksandeep_: client entity: https://gist.github.com/obinoob/83e8efd6e6e4f29dc709076068dd2870 |
# |
Nov 30th 2017, 11:43 |
h.mavisakalian |
lets say you check if a record exists… with ->exists() |
# |
Nov 30th 2017, 11:42 |
h.mavisakalian |
How do you get the ID of an existing record ? |
# |
Nov 30th 2017, 11:42 |
h.mavisakalian |
Have a question |
# |
Nov 30th 2017, 11:42 |
h.mavisakalian |
Hey Guys |
# |
Nov 30th 2017, 11:29 |
ksandeep_ |
show ur entity class and object response |
# |
Nov 30th 2017, 11:23 |
obinoob |
what am I missing here? anyone ? |
# |
Nov 30th 2017, 11:17 |
obinoob |
The action code https://gist.github.com/obinoob/d16ed6d38dc1c3edc9937843485d623a |
# |
Nov 30th 2017, 11:13 |
obinoob |
and this is my client table https://gist.github.com/obinoob/86c96e2a61dc3e9834aba65e82a68d54 |
# |
Nov 30th 2017, 11:12 |
obinoob |
I believe I have setup all the belongsTo and hasMany associations in related Tables |
# |
Nov 30th 2017, 11:11 |
obinoob |
this is the query code: INSERT INTO `clients` (`name`, `nif`) VALUES (:c0, :c1) |
# |
Nov 30th 2017, 11:09 |
obinoob |
This is my action code Saving HasMany Association |
# |
Nov 30th 2017, 11:09 |
obinoob |
Good morning, I'm walking for the first time on "Saving HasMany Associations" I followed the tutorial example which is very simple but the query being generated does not include associated entities... |
# |
Nov 30th 2017, 11:03 |
ksandeep_ |
any one have idea about virtual field can be used as condition in cake 3.x |
# |
Nov 30th 2017, 10:48 |
dereuromark |
and since it is released that means there should be support already for it. the travis matrix will tell you the same thing |
# |
Nov 30th 2017, 10:46 |
dereuromark |
Actually: searching for it easily finds https://github.com/cakephp/cakephp/pull/11347 |
# |
Nov 30th 2017, 10:46 |
neothermic |
I'd be happy to add it to the travis build config ;) |
# |
Nov 30th 2017, 10:45 |
dereuromark |
if you make a PR for it, sure :slightly_smiling_face: |
# |
Nov 30th 2017, 10:45 |
neothermic |
Any word on if 2.x will support PHP 7.2? ;) |
# |
Nov 30th 2017, 10:37 |
ksandeep_ |
Hello friends, can we do search on virtual fields, If yes then how to do this, or what are the other way to search against this field groups |
# |
Nov 30th 2017, 10:28 |
maymeow |
@ceeram one problem of php is that is running under www-data and if i need git user i had to create service that is running under git |
# |
Nov 30th 2017, 10:24 |
maymeow |
@ceeram i found and try this one https://github.com/matteosister/GitElephant |
# |
Nov 30th 2017, 10:19 |
birdy247 |
great shout |
# |
Nov 30th 2017, 10:19 |
birdy247 |
:slightly_smiling_face: |
# |
Nov 30th 2017, 10:19 |
neon1024 |
Yes! Work chocolate advert calendars have been given out! :) |
# |
Nov 30th 2017, 10:19 |
neon1024 |
You could do something similar to the form input control with the Security Component and CSRF tokens anyway |
# |
Nov 30th 2017, 10:18 |
neon1024 |
But to me they’re edge cases |
# |
Nov 30th 2017, 10:18 |
neon1024 |
Or if you want a form where only a few fields are editable and the rest are disabled, but you still set the complete entity to the form context |
# |
Nov 30th 2017, 10:18 |
neon1024 |
If you have security concerns with some forms perhaps |
# |
Nov 30th 2017, 10:17 |
neon1024 |
You’d wear your fingerprints off! |
# |
Nov 30th 2017, 10:17 |
neon1024 |
Well you don’t want to set the accessible fields every time you save |
# |
Nov 30th 2017, 10:16 |
birdy247 |
is it just a shorthand for accessibleFields |
# |
Nov 30th 2017, 10:15 |
birdy247 |
I dont see why you need the fieldList if you can se the accessibleFields directly on the entity when patching |