Log message #4226710

# At Username Text
# Feb 13th 2020, 06:51 javier.villanueva (accesible var)
# Feb 13th 2020, 06:51 javier.villanueva could you show your requestItem.php?
# Feb 13th 2020, 06:47 md.islam11 its not working
# Feb 13th 2020, 06:47 md.islam11 hmm
# Feb 13th 2020, 06:47 javier.villanueva two ways are good ....
# Feb 13th 2020, 06:46 javier.villanueva nop...your example its ok
# Feb 13th 2020, 06:43 javier.villanueva try with ```$request=$this->Requests->patchEntity($this->Requests->newEntity(), $requestData,['associated' => ['RequestItems', 'RequestItems.Docs]]]);```
# Feb 13th 2020, 06:42 javier.villanueva in my working examples I have docs => true
# Feb 13th 2020, 06:41 javier.villanueva you have "accesible" docs.*
# Feb 13th 2020, 06:39 javier.villanueva wait a minute
# Feb 13th 2020, 06:38 md.islam11 when i retrieve the data request. its working . So I think association is OK.
# Feb 13th 2020, 06:37 md.islam11 request [hasMany ] items and items hasMany docs
# Feb 13th 2020, 06:37 javier.villanueva your reltionships are hasMany?
# Feb 13th 2020, 06:35 md.islam11 like this
# Feb 13th 2020, 06:35 md.islam11 requestData[request_items][docs]
# Feb 13th 2020, 06:35 javier.villanueva with docs
# Feb 13th 2020, 06:35 javier.villanueva request_items
# Feb 13th 2020, 06:35 md.islam11 no
# Feb 13th 2020, 06:35 javier.villanueva ok I saw
# Feb 13th 2020, 06:35 md.islam11 not
# Feb 13th 2020, 06:34 md.islam11 yes
# Feb 13th 2020, 06:33 javier.villanueva your rerquestData has ['docs'] ?
# Feb 13th 2020, 06:31 md.islam11 Please check main chat
# Feb 13th 2020, 06:31 md.islam11 This line is wrong for sure .
# Feb 13th 2020, 06:31 md.islam11 ```$request=$this->Requests->patchEntity($this->Requests->newEntity(), $requestData,['associated' => ['RequestItems'=>['associated'=>['Docs']]]]);```
# Feb 13th 2020, 06:30 md.islam11 Patchentity have not docs.
# Feb 13th 2020, 06:29 md.islam11 Here is the patch entity
# Feb 13th 2020, 06:28 slackebot <md.islam11>
# Feb 13th 2020, 06:28 slackebot <md.islam11>
# Feb 13th 2020, 06:27 javier.villanueva $request
# Feb 13th 2020, 06:26 javier.villanueva use the main chat better. Show the patchEntity response
# Feb 13th 2020, 06:26 slackebot ) [request_date] => 2020-02-13 12:02:51 )```
# Feb 13th 2020, 06:26 slackebot [settlement_currency_id] => 1 [requested_currency_id] => 1 [iexpense_currency_rate_id] => 1 [docs] => Array ( [0] => Array ( [is_cost] => 1 [file_name] => aaaa ) ) )
# Feb 13th 2020, 06:26 md.islam11 ```Array ( [request_type] => OTHER [advanced_type] => CLAIM [expense_number] => 0048 [status] => Draft [comments] => test [request_items] => Array ( [0] => Array ( [requested_amount] => 101 [settlement_amount] => 101 [item_currency_rate] => 1 [iexpense_category_id] => 4
# Feb 13th 2020, 06:26 javier.villanueva yhanks
# Feb 13th 2020, 06:26 javier.villanueva ok...with params... i dont know first time not works
# Feb 13th 2020, 06:25 md.islam11 Ok. wait a min. Just a heads up. [request has many items and items has many docs]
# Feb 13th 2020, 06:24 javier.villanueva Its possible to get controller and action from url? (or fron $this->referer())?
# Feb 13th 2020, 06:21 javier.villanueva @md.islam11 debug your request and show
# Feb 13th 2020, 06:21 matiur756 morning to everybody
# Feb 13th 2020, 06:20 alexdd55976 :)