# |
Jun 19th 2019, 11:52 |
slackebot1 |
'api_application_module_templates' => true, 'api_request_parameters' => true, 'cron_jobs' => true ], '[dirty]' => [ 'api_application_id' => true, 'api_module_id' => true, 'api_operation_type_id' => true, 'api_request_url' => true, 'cron_job_frequency_option_id' => true, 'cron_job_frequency' => true, 'pagination_max_size' => true, 'api_auth_type_id' => true ], '[original]' => [], '[virtual]' => [], '[hasErrors]' => false, |
# |
Jun 19th 2019, 11:52 |
slackebot1 |
'api_application_id' => true, 'api_module_id' => true, 'api_operation_type_id' => true, 'created' => true, 'modified' => true, 'api_request_url' => true, 'cron_job_frequency_option_id' => true, 'cron_job_frequency' => true, 'pagination_max_size' => true, 'api_auth_type_id' => true, 'api_application' => true, 'api_module' => true, 'api_operation_type' => true, 'cron_job_frequency_option' => true, |
# |
Jun 19th 2019, 11:52 |
khalid |
and output is: object(App\Model\Entity\ApiApplicationModule) { 'api_application_id' => (int) 2, 'api_module_id' => (int) 2, 'api_operation_type_id' => (int) 4, 'api_request_url' => '/{apiVersion}/{baseStoreUid}/vendor/{vendorCode}/orders', 'cron_job_frequency_option_id' => (int) 1, 'cron_job_frequency' => (int) 4, 'pagination_max_size' => (int) 2, 'api_auth_type_id' => (int) 1, '[new]' => true, '[accessible]' => [ |
# |
Jun 19th 2019, 11:52 |
khalid |
$apiApplicationModule = $this->ApiApplicationModules->newEntity(); $apiApplicationModule = $this->ApiApplicationModules->patchEntity($apiApplicationModule, $this->getRequest()->getData(), [ 'associated' => ['ApiModules'] ]); debug($apiApplicationModule); debug($this->getRequest()->getData()); |
# |
Jun 19th 2019, 11:51 |
khalid |
sorry for typo yes let me put exact code |
# |
Jun 19th 2019, 11:47 |
admad |
if `ModuleRequests` belongsTo `Module` then the associated property name should be `module` not `modules`. |
# |
Jun 19th 2019, 11:45 |
khalid |
any suggestions |
# |
Jun 19th 2019, 11:45 |
khalid |
when I am debugging it, it is telling me modules is accessible but I don't have it in Object data |
# |
Jun 19th 2019, 11:44 |
khalid |
code I tried looks something like this: $moduleRequests = $this->ModuleRequests->newEntity(); $moduleRequests = $this->ModuleRequests->patchEntity($moduleRequests, $this->getRequest()->getData(), [ 'associated' => ['Modules'] ]); |
# |
Jun 19th 2019, 11:42 |
khalid |
is it possible? |
# |
Jun 19th 2019, 11:42 |
khalid |
hi guys, I have a use case, when I am patching a new entity it need data from Association e.g I have a Model Modules and one module can have many ModuleRequests now when I am patching new ModelRequest I want to get Specific Module data without having to call another finder with get |
# |
Jun 19th 2019, 10:14 |
snake-venom |
how to resolve ? |
# |
Jun 19th 2019, 10:14 |
snake-venom |
but still same error.. |
# |
Jun 19th 2019, 10:14 |
snake-venom |
find . -type f -exec chmod -R 644 {} \; |
# |
Jun 19th 2019, 10:14 |
snake-venom |
find . -type d -exec chmod -R 755 {} \; |
# |
Jun 19th 2019, 10:14 |
snake-venom |
[Wed Jun 19 10:11:41.803844 2019] [:error] [pid 16147:tid 140337519523584] [client 157.36.216.136:54814] SoftException in Application.cpp:569: Directory "/home/web01/public_html/projects/app" is writeable by group" |
# |
Jun 19th 2019, 10:14 |
snake-venom |
to solve this error " |
# |
Jun 19th 2019, 10:14 |
snake-venom |
hello |
# |
Jun 19th 2019, 09:34 |
peppejaripappalardo |
Hello to everybody, someone can help me? I have this issue: i have installed muffin/trash plugin. But in my case i've loaded it into the bootstrap.php with Plugin::load('Muffin/Trash'); but i get this error: Error: The application is trying to load a file from the Muffin/Trash plugin. Make sure your plugin Muffin/Trash is in the /var/www/jixel/plugins/ directory and was loaded. |
# |
Jun 19th 2019, 09:28 |
madbbb |
what is the best practice to check entity for associated data before delete on cake 3.5? |
# |
Jun 19th 2019, 09:10 |
conehead |
the only valid answer to this question (is it even a question?) is: Yes! |
# |
Jun 19th 2019, 09:06 |
deepak |
ipconfigs |
# |
Jun 19th 2019, 09:05 |
deepak |
ipconfig |
# |
Jun 19th 2019, 09:05 |
deepak |
ipconfig |
# |
Jun 19th 2019, 09:05 |
deepak |
what i have to search herer |
# |
Jun 19th 2019, 07:59 |
rudy1976s |
I find a solution using notMatching |
# |
Jun 19th 2019, 07:48 |
kgb.acct.personal |
Your code looks like from Cake2. Are you using Cake 2? |
# |
Jun 19th 2019, 07:47 |
kgb.acct.personal |
`request` property will be protected in future releases |
# |
Jun 19th 2019, 07:47 |
rightscoreanalysis |
what is the difference |
# |
Jun 19th 2019, 07:47 |
rightscoreanalysis |
@kgb.acct.personal - thnaks - seems $this->request->query('from') also works |
# |
Jun 19th 2019, 07:46 |
kgb.acct.personal |
@rightscoreanalysis `$this->getRequest()->getQueryParam('from')` |
# |
Jun 19th 2019, 07:45 |
rightscoreanalysis |
$this->request->param('from') |
# |
Jun 19th 2019, 07:45 |
rightscoreanalysis |
is this not how to read 'get' params? |
# |
Jun 19th 2019, 07:44 |
rudy1976s |
I need some help: I have a query with an associattion: I need to be able to query and obtain ONLY records where the association is empty |
# |
Jun 19th 2019, 07:44 |
neon1024 |
As the Cake standard is for PHP |
# |
Jun 19th 2019, 07:44 |
rudy1976s |
good morning to all ! |
# |
Jun 19th 2019, 07:44 |
neon1024 |
@kgb.acct.personal I would but I don’t have a standard for it |
# |
Jun 19th 2019, 07:28 |
kgb.acct.personal |
Any of you use codesniffer on ctp files? It doesn't seem to work that well against ctp files. |
# |
Jun 19th 2019, 06:45 |
a.didier |
hello everyone :wave: Can i set a route,php inside a plugin ? (Cake 2.10.18) Because is saw `CakePlugin::routes();` in the main route.php. Does it load a route.php located in `/app/plugin/MyPlugin/Config/route.php` ? |
# |
Jun 19th 2019, 05:01 |
conehead |
Good morning everyone |
# |
Jun 18th 2019, 23:16 |
rightscoreanalysis |
if i have provided post params which filtered my original results, so these need to be posted back with each page link also? |