Log message #4160327

# At Username Text
# Jul 18th 2018, 20:55 Rocky The install fails with this error: Failed to download composer/composer from dist: The archive may contain iden tical file names with different capitalization (which fails on case insensitive filesystems): ZipArchive::extractTo(): Full extraction path exceed MAXPATHLEN (2 60)
# Jul 18th 2018, 20:54 Rocky Hi! I am taking a Lynda.com course on cakephp and it gives the following command to install cake: composer create-project --prefer-dist cakephp/app {project name}
# Jul 18th 2018, 20:40 slackebot there are no traits of parent association in files table entity. How can I find which parent table started file entity save?
# Jul 18th 2018, 20:40 madbbb I have FilesTable with foreign_id and model field. ProductsTable hasOne Files and Documents hasMany Files as well and other models can have association with FileTable in future. When I save product entity with new file entity inside, file entity gets foreign_id from product and saves, but without model property. I tried to fill model field in FilesTable::beforeSave(Event $event, EntityInterface $entity, ArrayObject $options) method, but
# Jul 18th 2018, 18:36 slackebot rename migration filenames and update the corresponding version numbers in the `phinxlog` database table, and (2) fork phinx and update `Phinx\Migration\Manager` to sort migrations/seeds with the `ksort()` flag `SORT_STRING` so that e.g. `20180101000000` is sorted after `20170101000000000` Just curious if anyone has dealt with this and/or has thoughts on how best to handle it.
# Jul 18th 2018, 18:36 slackebot the "execution" order when doing rollbacks. That's why we've gone for years with these inconsistent filenames. I now need to fix these so that I can re-apply all migrations, and they get applied in the correct order. I'm curious what the best approach is for this. I haven't been able to dig up much online, and was hoping some other team had dealt with this issue in the past. The two approaches I've used to work around this so far are: (1) manually
# Jul 18th 2018, 18:36 mike I've got a question related to Phinx; I'm not sure if this is the appropriate venue but: I have a project which has had Phinx migrations created over the months/years, which have not consistently followed the filename structure. As a result, I've got migrations with different lengths of "versions" (the timestamp in the file name). In practice this doesn't cause much of an issue if migrations are typically applied one at a time, and if we use
# Jul 18th 2018, 18:36 mr.mjsm may I ask a non cakephp related question?
# Jul 18th 2018, 17:38 dereuromark you must never access it, always pass it into the model layer. see footprint and other plugins
# Jul 18th 2018, 17:38 itmpls what's the recommended way of accessing the current request object within a model? or should it be passed? my dilemma is, i'm setting a request attribute in my middleware but need a way to access it in the model
# Jul 18th 2018, 17:34 okelet hi, I have a problem with authentication; when the session has expired, the action is executed, although the user is redirected to the login page (it looks like the action is executed but not rendered...). anyone knows why this happens?
# Jul 18th 2018, 17:09 Diego_ try this in beforeFilter $this->Auth->setConfig('authenticate.Form.fields.username', 'matric_number');
# Jul 18th 2018, 17:06 savant if you’re using the AuthComponent
# Jul 18th 2018, 17:06 savant you could configure multiple Authenticate objects
# Jul 18th 2018, 17:04 clementcrown that is the problem, it is not possible for me to configure multiple fields as username in cakephp....., does anyone know how I can achieve this?
# Jul 18th 2018, 17:01 Martin` i wonder if you can config muktiple fields as username in the auth component
# Jul 18th 2018, 17:00 clementcrown the same table
# Jul 18th 2018, 16:59 Martin` clementcrown: i think this it possible. it also uses an other table for the users or is it the same?
# Jul 18th 2018, 16:59 clementcrown can I have a form that logs in user with matric number as username and another form with email as username on the same cakephp installation ?
# Jul 18th 2018, 16:57 Martin` ah here is the new one https://book.cakephp.org/3.next/en/console-and-shells/commands.html
# Jul 18th 2018, 16:56 clementcrown Hi everyone, I am developing a school portal with cakephp 3.x, i want to create two different forms for loggin in, the first, user will login with email and password, on the second form, users will login with matric number and password. Is it possible for me to have this in a single cakephp application?
# Jul 18th 2018, 16:30 Martin` I was wondering if it is better to use a new way, but I don't see that
# Jul 18th 2018, 16:30 Martin` yes I wanted to write a commandline script. but I see that https://book.cakephp.org/3.0/en/console-and-shells/shells.html is Deprecated
# Jul 18th 2018, 16:25 flavius commands?
# Jul 18th 2018, 16:24 Martin` I see cakephp 3 shells are deprecated and removed in 5.x, is there already a alternative?
# Jul 18th 2018, 16:16 flavius brb, doing a pull request on cakephp readme that says "this framework only works in linux" :P
# Jul 18th 2018, 16:15 dereuromark o_O
# Jul 18th 2018, 16:15 admad Then you should consider your life choices
# Jul 18th 2018, 16:15 flavius what if my server is also windows?
# Jul 18th 2018, 16:13 dereuromark so it is closer to the deployment and server
# Jul 18th 2018, 16:13 dereuromark I would expect the windows people to use cakebox instead of native dev.
# Jul 18th 2018, 16:09 flavius File uploaded https://cakesf.slack.com/files/U75U0UMR9/FBSLUD8V9/image.png / https://slack-files.com/T053DPNCM-FBSLUD8V9-e078e2168f
# Jul 18th 2018, 16:09 dereuromark yeah most likely
# Jul 18th 2018, 16:08 flavius i dont think the `andand` works in windows?
# Jul 18th 2018, 16:06 dereuromark interesting
# Jul 18th 2018, 16:06 dereuromark is it windows?
# Jul 18th 2018, 16:06 flavius File uploaded https://cakesf.slack.com/files/U75U0UMR9/FBS8B6X9P/image.png / https://slack-files.com/T053DPNCM-FBS8B6X9P-621ec5a07f - <@U052SF4V6> well that was a pain, and it still didn't work after all that, it works in terminal btw
# Jul 18th 2018, 15:54 flavius hmmmm
# Jul 18th 2018, 15:54 flavius File uploaded https://cakesf.slack.com/files/U75U0UMR9/FBSUEUW1K/image.png / https://slack-files.com/T053DPNCM-FBSUEUW1K-421c227c53 - actually i didn't
# Jul 18th 2018, 15:54 dereuromark should probably be checked for and disabled here
# Jul 18th 2018, 15:54 dereuromark you loaded that component I bet