# |
Apr 5th 2019, 13:22 |
neon1024 |
It’s not like when 4.0 is released all the plugins will have been updated already anyway, they’ll all need work ;) |
# |
Apr 5th 2019, 13:22 |
neon1024 |
Geez if a plugin maintainer tried to track and update every deprecation in their plugin as they arose! Can you imagine! |
# |
Apr 5th 2019, 13:21 |
neon1024 |
A deprecation is a notice, it’s not broken |
# |
Apr 5th 2019, 13:21 |
neon1024 |
So? |
# |
Apr 5th 2019, 13:05 |
asdfgh |
but it is deprecated |
# |
Apr 5th 2019, 13:05 |
asdfgh |
the library i have found has _registry that look from Cookie component |
# |
Apr 5th 2019, 13:05 |
asdfgh |
i am creating COokieAuthentication |
# |
Apr 5th 2019, 13:04 |
asdfgh |
i need to read cookie |
# |
Apr 5th 2019, 13:04 |
asdfgh |
guys is not possible anymore to access the ServerRequest from an Authenticate custom object? |
# |
Apr 5th 2019, 12:53 |
conehead |
Ah okay thanks. I will give it a shot. ```If you need more customization, use the tags property directly. When saving the tags, they need to be in the normalized form then on patching.``` As I did not need any more customization I thought it would be fine using the line above. A little bit confusing |
# |
Apr 5th 2019, 12:52 |
dereuromark |
But as tags property then afaik. not into tag_list |
# |
Apr 5th 2019, 12:49 |
dereuromark |
check the source code for details. we might have to add more examples to the docs |
# |
Apr 5th 2019, 12:48 |
dereuromark |
otherwise use the keys as neon suggests or provide the entities directly |
# |
Apr 5th 2019, 12:48 |
dereuromark |
you need to read the docs: tag_list is only for string strategy |
# |
Apr 5th 2019, 12:47 |
conehead |
Well I am not talking about a "normal" hasMany relation. |
# |
Apr 5th 2019, 12:46 |
neon1024 |
Wouldn’t that be `._ids` then? |
# |
Apr 5th 2019, 12:43 |
conehead |
@neon1024 ``` ["tag_list"]=> array(1) { [0]=> string(2) "48" }``` It only contains the id. It gets linked as it should. But additionally a tag with the name "48" is added |
# |
Apr 5th 2019, 12:35 |
conehead |
Using `echo $this->Form->control('tag_list', ['type' => 'select', 'multiple' => true, 'options' => $tags]);` |
# |
Apr 5th 2019, 12:33 |
conehead |
example: Tags "foo" (id 1) and "bar" (id 2) exist. I am able to to save them. The data is stored correctly and when I reload the entity it is saved as it should be. But additionally the tag "1" (id 3) and "2" (id 4) now exist |
# |
Apr 5th 2019, 12:32 |
admad |
@val https://github.com/cakephp/cakephp/blob/master/phpunit.xml.dist#L8 |
# |
Apr 5th 2019, 12:32 |
neon1024 |
Sounds like Tag.id is missing from the post data |
# |
Apr 5th 2019, 12:32 |
conehead |
@dereuromark I am just trying your new Tag plugin. I am about to switch from the old cakedc tags plugin. Really love it so far! I am using the `array` strategy. Unfortunately when I edit/save my entity, every time for each selected tag, another tag with its id is created. Any idea? |
# |
Apr 5th 2019, 12:32 |
val |
@admad ah, found it. like this? https://github.com/DinnerBooking/dinnerbooking.com/pull/20797#discussion_r272562471 |
# |
Apr 5th 2019, 12:30 |
neon1024 |
Literally any plugin. |
# |
Apr 5th 2019, 12:30 |
val |
@admad thanks. any examples? |
# |
Apr 5th 2019, 12:22 |
asdfgh |
agent_project_views follows the conventions? |
# |
Apr 5th 2019, 12:22 |
asdfgh |
guys how can i call the third table from agents and projects where i store the visit/view that an agent does for each project? |
# |
Apr 5th 2019, 12:20 |
admad |
you should specify the bootstrap file in phpunit.xml config |
# |
Apr 5th 2019, 12:18 |
val |
@admad should the bootstrap file be always the test command parameter in the console? |
# |
Apr 5th 2019, 12:11 |
admad |
@val boostrap file of your test suite |
# |
Apr 5th 2019, 12:08 |
johnwayne |
Hi, is there way to fetch Email template out of `new Email->template($template)` function. I am using extern Microservice for sending Emails, there is `html` param where I have to use CakePhp Email template. Is there a way to do this or not...? |
# |
Apr 5th 2019, 12:07 |
admad |
IIRC that's what the error message was telling you "Access denied" |
# |
Apr 5th 2019, 11:38 |
weto.jc |
Good morning, I managed to solve the connection problem, the problem was permission, the admin user was not allowed to access the database as the @ricksaccous, thank you very much. |
# |
Apr 5th 2019, 11:37 |
dereuromark |
and yeah not core for sure. check out my setup plugin it already contains tons of these schema and model checks. |
# |
Apr 5th 2019, 11:37 |
dereuromark |
its not an rfc if this is plugin solution |
# |
Apr 5th 2019, 11:32 |
neon1024 |
It could make a nice plugin |
# |
Apr 5th 2019, 11:32 |
neon1024 |
Open an RFC though for sure :thumbsup: |
# |
Apr 5th 2019, 11:31 |
neon1024 |
It might be helpful, but I don’t see the value myself :slightly_smiling_face: |
# |
Apr 5th 2019, 11:31 |
marek.sebera |
yes, you can see if the columns are unvalidated, then decide if that is something you want to change |
# |
Apr 5th 2019, 11:31 |
neon1024 |
Er, no. TDD is a development methodology, and an Integration Test is a form of automated testing |
# |
Apr 5th 2019, 11:31 |
neon1024 |
That’s be design, and presumably this functionality would flag that as an error or warning |