# |
Oct 4th 2016, 01:00 |
robodna |
ok cool. Is the following route file you sent me all for rest, or are there non-rest routes in there? If i understand correctly, the books:book_id/chapters/:chapter_id route is a restul one as you have patch too... |
# |
Oct 4th 2016, 00:51 |
robodna |
I have the 'fully restufll endpoints' routed, but do I also add routes for any related resource, like /books/:book_id/chapters/:chapter_id? I may end up with about 100 route entries if I need to do that... |
# |
Oct 4th 2016, 00:50 |
robodna |
@savant you helped me a few months ago with my REST api routing question. Do you have fully RESTful apis or do you sometimes sneak in some RPC? I'm looking at the route.php file you sent me :slightly_smiling_face: |
# |
Oct 3rd 2016, 22:59 |
cakephp333 |
Hey guys. I can't find in the documentation about my case. I have a "studies" table, with a foreign key "patient_id" and a table "orders" with a id "study_patient_id". "study_patient_id" referes to patient_id from studies. So cakephp will recognize this relation in bake? The naming convetion is okay? Or I need to adjust in the model first? |
# |
Oct 3rd 2016, 22:20 |
inoas |
Gnite bakress and bakers |
# |
Oct 3rd 2016, 22:15 |
inoas |
Okay, cleanup day done for me |
# |
Oct 3rd 2016, 21:35 |
inoas |
admad and thanks for pointing out how easy it is to contribute via clone + composer install |
# |
Oct 3rd 2016, 21:35 |
thinkingmedia |
LAMP stack running CakePHP 3 on Digital Ocean nodes. |
# |
Oct 3rd 2016, 21:34 |
thinkingmedia |
https://ahtag.com/ |
# |
Oct 3rd 2016, 21:34 |
inoas |
) |
# |
Oct 3rd 2016, 21:34 |
thinkingmedia |
thanks, the launch went okay. Lost a little sleep but at least the website is now in beta. |
# |
Oct 3rd 2016, 21:34 |
dereuromark |
at least if you want to continue to support the old way for BC reasons |
# |
Oct 3rd 2016, 21:33 |
dereuromark |
if you extend it you most likely will also have to call that one in some way |
# |
Oct 3rd 2016, 21:33 |
inoas |
okay, I do think its a valid use case for a private, as it is a deprecation helper method - but no probs changing brb |
# |
Oct 3rd 2016, 21:33 |
dereuromark |
well, but still |
# |
Oct 3rd 2016, 21:33 |
inoas |
deprecation method |
# |
Oct 3rd 2016, 21:33 |
inoas |
that's a depreation method |
# |
Oct 3rd 2016, 21:33 |
dereuromark |
its a framework, classes are meant to be extended |
# |
Oct 3rd 2016, 21:33 |
dereuromark |
why not? |
# |
Oct 3rd 2016, 21:32 |
inoas |
dereuromark, yes but any hints at why (I like to understand)? |
# |
Oct 3rd 2016, 21:32 |
inoas |
thinkingmedia good luck with your launch btw :) |
# |
Oct 3rd 2016, 21:32 |
dereuromark |
use protected |
# |
Oct 3rd 2016, 21:32 |
inoas |
e.g. in the core |
# |
Oct 3rd 2016, 21:32 |
inoas |
like private function _deprecateModelOption(array $options) |
# |
Oct 3rd 2016, 21:31 |
inoas |
what's the reason for now private functions? |
# |
Oct 3rd 2016, 21:13 |
bravo-kernel |
thanks, the existing sources and tests help a lot :slightly_smiling_face: |
# |
Oct 3rd 2016, 21:08 |
admad |
good going on the jsonapi listener :clap: |
# |
Oct 3rd 2016, 21:07 |
admad |
now! |
# |
Oct 3rd 2016, 21:07 |
bravo-kernel |
but.. will do |
# |
Oct 3rd 2016, 21:06 |
bravo-kernel |
lol |
# |
Oct 3rd 2016, 21:06 |
admad |
do it! :slightly_smiling_face: |
# |
Oct 3rd 2016, 21:05 |
bravo-kernel |
:punch: |
# |
Oct 3rd 2016, 21:05 |
bravo-kernel |
I will create three new classes that will fit all crud jsonapi cases then |
# |
Oct 3rd 2016, 21:04 |
bravo-kernel |
@admad ok thanks |
# |
Oct 3rd 2016, 21:04 |
admad |
but i wouldn't suggest using source install just add the required model classes to your plugin tests |
# |
Oct 3rd 2016, 21:03 |
admad |
by default the dist install is used and it only contains the fixtures |
# |
Oct 3rd 2016, 21:03 |
admad |
@bravo-kernel you can use the models from core test suite only if you use --prefer-source to install the dev dependencies |
# |
Oct 3rd 2016, 21:02 |
ndm |
@bravo-kernel It should be, but the cake core test app doesn't use a `Cake` prefixed namespace, it's just `TestApp\...`, also you may need to add a corresponding autoload entry to your `composer.json`. |
# |
Oct 3rd 2016, 20:54 |
bravo-kernel |
Is this even do'able |
# |
Oct 3rd 2016, 20:53 |
bravo-kernel |
I am having some trouble loading a Cake TestApp model from within my plugin tests. I am trying to use Cake\TestApp\Model\Entity\Article and the create new Article() |
# |
Oct 3rd 2016, 20:52 |
harry1 |
Contain will not work because it won't NOt join if a condiiton is not met |