# |
Apr 17th 2018, 16:06 |
steinkel |
why not migrating to latest 3.x? |
# |
Apr 17th 2018, 16:06 |
inoas |
aka 3.5 should be LTS |
# |
Apr 17th 2018, 16:06 |
inoas |
I mean there can be 3.5.20 |
# |
Apr 17th 2018, 16:05 |
steinkel |
3.6 then 4 AFAIK |
# |
Apr 17th 2018, 16:05 |
inoas |
if latter then the idea would be to stay on either 3.5 (forever) or move to 3.6 to be able to easily migrate to 4.x |
# |
Apr 17th 2018, 16:05 |
inoas |
steinkel is 3.7 planned or directly 4.x? |
# |
Apr 17th 2018, 14:41 |
steinkel |
you can use it in 3.6, we are reviewing one PR with all deprecations removed, will hit develop soon |
# |
Apr 17th 2018, 14:09 |
itmpls |
anyone write their own authorization stuff and integrating with cakedc/users? wondering if i should use simplerbac / cakedc.auth given 3.6 released |
# |
Apr 17th 2018, 13:52 |
neon1024 |
Ours seems to be unversioned |
# |
Apr 17th 2018, 13:51 |
neon1024 |
Do people commit their schema lock file? `config/Migrations/schema-dump-default.lock` |
# |
Apr 17th 2018, 13:15 |
neon1024 |
@portilloster `bin/cake bake migration MyMigrationName` |
# |
Apr 17th 2018, 13:12 |
inoas |
join |
# |
Apr 17th 2018, 11:41 |
portilloster |
@makallio85 I assume the file you are reffering is Migrations.php? And how do I run that sentence? From the shell? |
# |
Apr 17th 2018, 11:15 |
makallio85 |
In Migration file $this->table('tableName')->changeColumn('colName', $newColType, $options)->update(); |
# |
Apr 17th 2018, 11:09 |
portilloster |
Guys, any easy way to change the type of existing column without baking the table again? (v.3.5) |
# |
Apr 17th 2018, 11:02 |
makallio85 |
If you were given task to implement restriction to display specific entities application wide, unless especially granted, what kind of approach would be your choice? Entities with specific flags, should require free-text explanation from user, why user wants to see entity data. I should concern entity view pages directly and listing entities as well. |
# |
Apr 17th 2018, 10:53 |
neon1024 |
Unless `$_virtual` could be a callback method which return an array, and takes the config perhaps? |
# |
Apr 17th 2018, 10:52 |
neon1024 |
and `$_virtual = ['custom_field']` |
# |
Apr 17th 2018, 10:52 |
neon1024 |
Which uses `_getCustomField()` |
# |
Apr 17th 2018, 10:52 |
neon1024 |
I’m talking about `$_virtual` which is an array of method names though |
# |
Apr 17th 2018, 10:51 |
saeideng |
`$entity->getCustomField($arg1)` |
# |
Apr 17th 2018, 10:51 |
saeideng |
$entity->getCustomField() |
# |
Apr 17th 2018, 10:50 |
saeideng |
@neon1024 |
# |
Apr 17th 2018, 10:44 |
neon1024 |
What would this kind of entity method look like? As virtual properties work on methods right/ |
# |
Apr 17th 2018, 10:44 |
neon1024 |
I’d like to dynamically create virtual fields in my entity, based on a configuration. The configuration varies by Table class |
# |
Apr 17th 2018, 10:43 |
neon1024 |
Hello everyone |
# |
Apr 17th 2018, 10:21 |
hippo |
Nevermind, it's working |
# |
Apr 17th 2018, 10:00 |
hippo |
should `$entity->setErrors('attribute', ['message']); return false; ` work in a beforeSave()? |
# |
Apr 17th 2018, 09:05 |
portilloster |
yes!, thanks @neon1024 :-) |
# |
Apr 17th 2018, 09:01 |
neon1024 |
So yeah, use the `$context` |
# |
Apr 17th 2018, 08:55 |
joshualuckers |
See "conditional validation" https://book.cakephp.org/3.0/en/core-libraries/validation.html#conditional-validation |
# |
Apr 17th 2018, 08:47 |
portilloster |
Hi @neon1024!! These below are class properties right? I want to create a rule for one of them and I need the other one for comparign :slightly_smiling_face: $validator ->date('FechaBajaSolicitud') ->notEmpty('FechaBajaSolicitud'); $validator ->date('FechaAltaReclamacion') ->notEmpty('FechaAltaReclamacion'); |
# |
Apr 17th 2018, 08:38 |
sonu_nk |
domain.com/auth?state=91andcode=4/kPAobhARwQntv0qucokyBwvgAM60OhpTcypoLZc i have this in browser, when i am trying to access query params then it saying blank array.. with$_REQUEST or $_GET even its not wokring.. |
# |
Apr 17th 2018, 08:37 |
sonu_nk |
hi here |
# |
Apr 17th 2018, 08:19 |
neon1024 |
If it’s a class property, you can pass it into your function with a use `function ($foo) use ($bar) {` |
# |
Apr 17th 2018, 08:18 |
neon1024 |
If it’s request data, the second param of $context will have the data you need |
# |
Apr 17th 2018, 08:18 |
neon1024 |
Is it part of the data being validated, or is it a class property? |
# |
Apr 17th 2018, 08:18 |
neon1024 |
Can you define what an attribute is? |
# |
Apr 17th 2018, 07:07 |
portilloster |
Morning everyone! I need to make a validating function on the Model/Table, and I need to send it two attributes from that Table. I know how to do it with one attribute creating the rule for it, but how do I pass the second attribute to the function? |
# |
Apr 17th 2018, 06:51 |
wyrihaximus |
hey @joshualuckers :wave: |
# |
Apr 17th 2018, 06:50 |
joshualuckers |
hi @wyrihaximus :D |