Log message #4214069

# At Username Text
# Nov 19th 2019, 10:31 noel Mysteriously that error vanished. Now instead I'm getting: ```"A route matching \"array (\n 'controller' => '',\n 'plugin' => '',\n 0 => 1,\n '_method' => 'GET',\n 'action' => 'view',\n 'prefix' => 'api',\n '_ext' => NULL,\n)\" could not be found."``` ... just by adding in an association.. why would my route suddenly not be found?
# Nov 19th 2019, 10:29 kgb.acct.personal Thanks. I'll keep that in mind
# Nov 19th 2019, 10:28 slackebot !kiss
# Nov 19th 2019, 10:28 slackebot Command sent from Slack by challgren:
# Nov 19th 2019, 10:28 pieceof php mvc ~ rubymvc
# Nov 19th 2019, 10:28 challgren Remember KISS
# Nov 19th 2019, 10:28 kgb.acct.personal Guess I'll use a design pattern that doesn't piss my coworkers off
# Nov 19th 2019, 10:28 pieceof im sorry not updated to cake 3, but it should work with that definition, id look elsewhere
# Nov 19th 2019, 10:27 narendravaghela thanks @kgb.acct.personal
# Nov 19th 2019, 10:26 noel @pieceof actually I'm getting that error even if I delete the association!?
# Nov 19th 2019, 10:26 kgb.acct.personal @narendravaghela Your plugin looks easy to use :+1:
# Nov 19th 2019, 10:26 challgren Im a slacker! Sorry!
# Nov 19th 2019, 10:25 narendravaghela Cool man!
# Nov 19th 2019, 10:25 challgren I gotta work on 4.x soon
# Nov 19th 2019, 10:25 challgren Got it, its been a bit of time since I looked at the codebase
# Nov 19th 2019, 10:25 noel @pieceof no, it's Cake 3.8
# Nov 19th 2019, 10:25 narendravaghela Yes, not SDK
# Nov 19th 2019, 10:25 challgren APIs but not SDK
# Nov 19th 2019, 10:24 pieceof is it cake 2 maybe classname should be User ?
# Nov 19th 2019, 10:24 challgren Ahh nope we dont use their SDK, but for QBO right now I use their SDK but its painful
# Nov 19th 2019, 10:24 narendravaghela We use their APIs
# Nov 19th 2019, 10:23 challgren Or it is SDKless
# Nov 19th 2019, 10:23 challgren @narendravaghela right we use their SDK?
# Nov 19th 2019, 10:22 challgren Hell for Mailgun we use their PHP SDK
# Nov 19th 2019, 10:22 noel @pieceof ok but I get the same error.
# Nov 19th 2019, 10:22 challgren I would think not but my experience is trumped by a bunch of people here so they may have a better response.
# Nov 19th 2019, 10:21 kgb.acct.personal Does my choice of design pattern really matters?
# Nov 19th 2019, 10:21 pieceof Noel da Costa users leftjoin users, users that are customers will have not null
# Nov 19th 2019, 10:21 challgren Ive been very curious about this to write a QuickBooks Online Plugin
# Nov 19th 2019, 10:20 challgren https://github.com/UseMuffin/Webservice
# Nov 19th 2019, 10:20 kgb.acct.personal Yes
# Nov 19th 2019, 10:20 challgren So like a connecting to say QuickBooks, Stripe, Google Maps, etc?
# Nov 19th 2019, 10:20 noel How do I create a self-referencing association? E.g. I have a Users table. Some users are clients and some are customers. Clients belong to Customers. I tried this: ```$this->belongsTo('Customer', [ 'className' => 'Users', 'foreignKey' => 'customer_id', 'joinType' => 'INNER' ]);```
# Nov 19th 2019, 10:20 kgb.acct.personal I will be providing a plugin for an API
# Nov 19th 2019, 10:19 challgren Are you connecting to an API or providing a framework for an API?
# Nov 19th 2019, 10:19 neon1024 There is also a JsonApiListener for Crud now too if you want a more verbose JSON standard api
# Nov 19th 2019, 10:18 neon1024 Perhaps :point_right: http://www.bravo-kernel.com/2015/04/how-to-build-a-cakephp-3-rest-api-in-minutes/
# Nov 19th 2019, 10:18 neon1024 Have you looked at any of the existing API plugins?
# Nov 19th 2019, 10:17 kgb.acct.personal I'm not that exposed to different design patterns so I'm looking at Cake source
# Nov 19th 2019, 10:17 kgb.acct.personal IDK what design pattern to use
# Nov 19th 2019, 10:17 kgb.acct.personal I'm planning to make an API client library/plugin