# |
Jul 17th 2019, 12:22 |
scuadra |
@admad I used exactly the same function in the link I provided |
# |
Jul 17th 2019, 12:22 |
admad |
sorry, I see you linked the manual which shows how to update password |
# |
Jul 17th 2019, 12:20 |
admad |
authcomponent (or it's classes) don't make any queries to update db, so don't see how simply logging in updated the password in db. It's your app code that's doing so. |
# |
Jul 17th 2019, 12:20 |
scuadra |
I also checked the namespaces and they seem to be fine |
# |
Jul 17th 2019, 12:19 |
scuadra |
I also tried to add " protected $_accessible = ['*' => true]; " in the entity class but with no success |
# |
Jul 17th 2019, 12:18 |
scuadra |
@ndm no it is present |
# |
Jul 17th 2019, 12:17 |
ndm |
@scuadra You might be missing https://book.cakephp.org/3.0/en/controllers/components/authentication.html#hashing-passwords |
# |
Jul 17th 2019, 12:15 |
davorminchorov |
Hi, I want to setup Gmail SMTP for sending emails. I am using a gmail email as part of the company G Suite. Should I use the GSuite SMTP relay or can I do it with the normal one like for personal emails? |
# |
Jul 17th 2019, 12:11 |
scuadra |
Hello. I am trying to migrate the passwords of the users in my application (in my case the table is called `members`) form Cake2 to Cake3. I followed these steps --> https://book.cakephp.org/3.0/en/controllers/components/authentication.html#changing-hashing-algorithms. But the problem is when the user is logged in the old hash in the database is being replaced with the plain password instead of a hashed one. What could be the problem? |
# |
Jul 17th 2019, 11:57 |
dereuromark |
also traits work |
# |
Jul 17th 2019, 11:38 |
graziel |
and extends all tests from it, ie put method `setUser(int $id)` and call it as needed (sometimes i need logged user sometimes not) |
# |
Jul 17th 2019, 11:37 |
graziel |
@neon1024 i like to create `class IntegrationTestCase extends TestCase` and put there my methods to shorten writing of tests |
# |
Jul 17th 2019, 11:29 |
neon1024 |
Is there a neat place to set the session for a number of tests? I am integration testing an api behind a login |
# |
Jul 17th 2019, 11:01 |
dereuromark |
neon: see what ide helper does |
# |
Jul 17th 2019, 11:00 |
aivaras.godliauskas |
Yeah I do agree with that too :slightly_smiling_face: |
# |
Jul 17th 2019, 10:59 |
neon1024 |
Having a clean, organised and structured codebase is the approach I prefer personally |
# |
Jul 17th 2019, 10:59 |
neon1024 |
Performance optimisation is a bit of a rabbit hole |
# |
Jul 17th 2019, 10:58 |
neon1024 |
Probably just build your application as best you can, then use a tool like siege to test it’s response time, with debug off, and not on a live server ;) |
# |
Jul 17th 2019, 10:57 |
aivaras.godliauskas |
nah, in general just interested in performance measures or ways of measuring it. Most likely for personal use. |
# |
Jul 17th 2019, 10:55 |
neon1024 |
@aivaras.godliauskas Was there a specific piece of the framework’s performance you were interested in? |
# |
Jul 17th 2019, 10:54 |
neon1024 |
It’s like comparing a shovel and a spade |
# |
Jul 17th 2019, 10:53 |
neon1024 |
At least, that’s always been my experience of it |
# |
Jul 17th 2019, 10:53 |
neon1024 |
Most of the posts you’ll find if you Google will tell you that Symfony or Laravel are quicker depending on which one the author prefers |
# |
Jul 17th 2019, 10:52 |
aivaras.godliauskas |
i see. |
# |
Jul 17th 2019, 10:52 |
neon1024 |
You’ll get the results you want to get and learn nothing about the frameworks performance |
# |
Jul 17th 2019, 10:52 |
neon1024 |
Benchmarking frameworks is a pointless venture |
# |
Jul 17th 2019, 10:51 |
neon1024 |
At least, that’s what I’ve put in the ticket for myself to look at |
# |
Jul 17th 2019, 10:51 |
neon1024 |
I was going to run my test suite, note the time, refactor my use of fixture loading and run the suite again to see if it was quicker |
# |
Jul 17th 2019, 10:51 |
aivaras.godliauskas |
thats sad |
# |
Jul 17th 2019, 10:51 |
neon1024 |
@aivaras.godliauskas I’m not. |
# |
Jul 17th 2019, 10:50 |
neon1024 |
:white_check_mark: |
# |
Jul 17th 2019, 10:50 |
aivaras.godliauskas |
@neon1024 can you tell how are you running benchmarks on cake? |
# |
Jul 17th 2019, 10:50 |
neon1024 |
It’s a non-standard table name, so you must declare `public $table = 'script_composed_of'` then it’ll work |
# |
Jul 17th 2019, 10:46 |
neon1024 |
Seems that because I have database constraints, I have to execute the fixtures in a specific order |
# |
Jul 17th 2019, 10:26 |
neon1024 |
Points if you can tell me why my Fixture isn’t actually creating a database table https://pastebin.com/UEnGV6vQ |
# |
Jul 17th 2019, 10:11 |
neon1024 |
Guess I could benchmark that myself actually :thinking_face: |
# |
Jul 17th 2019, 10:10 |
neon1024 |
Is it worthwhile to manually load fixtures for test-cases which need extra fixtures? So they’re not loaded for every test-case |
# |
Jul 17th 2019, 09:58 |
neon1024 |
Hey @dereuromark when doing a `@property` in the class, with or without a dollar? `@property \App\Model\Table\ExamplesTable $Examples` |
# |
Jul 17th 2019, 09:09 |
ankitgsolanki |
I have following line of code for update mysql mariaDB view. ```$stmt = $conn->execute('update `listing` set `longitude` = ?, `latitude` = ? where `id` = ?',[-96.1080, 31.7356, 1922]);``` And I am getting following error *General error: 1221 Incorrect usage of UPDATE and ORDER BY* |
# |
Jul 17th 2019, 08:45 |
maymeow |
@graziel i found reason why it isnt working. It looks like you can translate only default cakephp files if you want to translate own classes like me it will return error |
# |
Jul 17th 2019, 08:08 |
graziel |
@maymeow did quick check on cake 3.8.1 and works ok for me |