Log message #4199893

# At Username Text
# Aug 26th 2019, 21:57 slackebot2 $itemTable = TableRegistry::getTableLocator()->get($this->getSource()); $metaTags = $metaTagsTable->find() ->cache(sprintf('meta_tags_%s_%s', $itemTable->getAlias(), $this->id), '_meta_tags_') ->where([ $metaTagsTable->aliasField('foreign_id') => $this->id, $metaTagsTable->aliasField('foreign_model') => $itemTable->getAlias(), ])
# Aug 26th 2019, 21:57 slackebot2 ->first(); if ($metaTags !== null) { $this->_metaTags = $metaTags->value; } } return $this->_metaTags; } ```
# Aug 26th 2019, 21:57 slackebot2 + foreign_model, which I fetch and cache in my default entity, but since my Table->getAlias() and Entity->getSource() return the wrong values I can't get the right meta tag ``` DefaultEntity /** @var string|null */ private $_metaTags; /** * @return string|null */ protected function _getMetaTags() { if ($this->_metaTags === null) { $metaTagsTable = TableRegistry::getTableLocator()->get('MetaTags');
# Aug 26th 2019, 21:57 vossen.steven Hey guys, got a question about self referencing BelongsToMany I have Products with a BelongsToMany to RecommendedProducts ``` ProductsTable $this->belongsToMany('RecommendedProducts', [ 'className' => 'Products', 'joinTable' => 'products_recommended_products', ]); ``` Now on to the problem, for me it seemed logical that both the RecommendedProductsTable and RecommendedProduct would reference
# Aug 26th 2019, 18:52 ricksaccous i just threw in an issue
# Aug 26th 2019, 18:52 ricksaccous nah it's a bug i believe
# Aug 26th 2019, 18:38 lpj145 and install or update again...
# Aug 26th 2019, 18:38 lpj145 try delet vendors folder
# Aug 26th 2019, 18:35 ricksaccous has anyone else run into this yet?
# Aug 26th 2019, 18:34 ricksaccous ``` Undefined index: plugin [ROOT/vendor/cakephp/debug_kit/src/Panel/RoutesPanel.php, line 43] ```
# Aug 26th 2019, 18:34 ricksaccous i'm getting an error with debugkit routes
# Aug 26th 2019, 18:33 slackebot2 <lpj145>
# Aug 26th 2019, 18:32 lpj145 thanks bro!
# Aug 26th 2019, 18:32 lpj145 is a old legacy system!
# Aug 26th 2019, 18:32 slackebot2 <lpj145>
# Aug 26th 2019, 18:32 lpj145 ok, i'm solved my issue!
# Aug 26th 2019, 18:24 lpj145 if i put id session from root dir to subfolder cakephp application this works as expected.
# Aug 26th 2019, 18:23 lpj145 someone know how solve this ?
# Aug 26th 2019, 18:23 lpj145 Cakephp try submodule folder api initialize session with another id and lost session data on root dir...
# Aug 26th 2019, 18:22 lpj145 is about session id...
# Aug 26th 2019, 18:22 lpj145 ok, now i'm can understando what is wrong...
# Aug 26th 2019, 18:05 lpj145 can understand me ?
# Aug 26th 2019, 18:05 lpj145 i need to check some custom data session by other application...
# Aug 26th 2019, 18:05 lpj145 because is a check of auth ?
# Aug 26th 2019, 18:03 ricksaccous that way it will be available in the middleware
# Aug 26th 2019, 18:03 ricksaccous @lpj145 why don't you throw any data into the request instead
# Aug 26th 2019, 18:03 lpj145 someone show me how i can get this data ?
# Aug 26th 2019, 18:03 lpj145 when i seach on doc, not found nothing about session_start $_SESSION var wrapper...
# Aug 26th 2019, 18:03 lpj145 Hello everyone, i maked middleware, but needed to check session data...
# Aug 26th 2019, 17:32 inoas urgh
# Aug 26th 2019, 17:32 inoas so slack shows me as jh
# Aug 26th 2019, 17:32 inoas hm
# Aug 26th 2019, 17:31 jh @davorminchorov that would be a middleware thing I think... pre-transformation validation, transformation, post-transformation-validation
# Aug 26th 2019, 13:48 admad i strong suggest you do the CMS tutorial first to understand the basics of using the framework
# Aug 26th 2019, 13:40 davorminchorov I'll go with patchEntity(), I thought it was related to the model itself, a misunderstanding on my part. Nope, haven't done the CMS tutorial yet, will look into it whenever I get some free time. Learning the framework on the go as I need. Thanks for all the help, I appreciate it.
# Aug 26th 2019, 13:37 admad why are you not using `patchEntity()` already before saving and entity? :slightly_smiling_face: Have you done the CMS tutorial on the manual?
# Aug 26th 2019, 13:35 ricksaccous prob makes more sense to just use patchEntity ;)
# Aug 26th 2019, 13:35 davorminchorov Ah right
# Aug 26th 2019, 13:35 ricksaccous and redefining the schema/etc
# Aug 26th 2019, 13:35 ricksaccous as in writing a model-less form class
# Aug 26th 2019, 13:34 davorminchorov extra work as in writing custom validation rules?