# |
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 |
# |
Oct 3rd 2016, 20:51 |
harry1 |
in v2 of cake can i return all hasMany data based on a join condition |
# |
Oct 3rd 2016, 20:08 |
maxomatos |
any problem " Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists." |
# |
Oct 3rd 2016, 20:08 |
maxomatos |
any problem " Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists." |
# |
Oct 3rd 2016, 19:50 |
maxomatos |
Thanks, I'll try |
# |
Oct 3rd 2016, 19:49 |
thinkingmedia |
https://getcomposer.org/doc/05-repositories.md#using-private-repositories |
# |
Oct 3rd 2016, 19:49 |
thinkingmedia |
here is an example in the docs for bitbucket here. |
# |
Oct 3rd 2016, 19:48 |
thinkingmedia |
https://getcomposer.org/doc/05-repositories.md |
# |
Oct 3rd 2016, 19:48 |
thinkingmedia |
``` "repositories": [ { "type": "vcs", "url": "git@bitbucket.org:vendor/repo.git" } ] ``` |
# |
Oct 3rd 2016, 19:46 |
maxomatos |
how? any example? |
# |
Oct 3rd 2016, 19:45 |
thinkingmedia |
@maxomatos you have to add the git url to your composer.json file manually. |
# |
Oct 3rd 2016, 19:31 |
maxomatos |
How to install plugin from https://bitbucket.org? |
# |
Oct 3rd 2016, 18:34 |
Greezler |
Ah great. Wasn't 2.8 fully compatible? I assume that renaming this was missed? |