Log message #4124091

# At Username Text
# Mar 12th 2018, 14:26 neon1024 Yes, you can access the core inside plugins
# Mar 12th 2018, 14:26 raul338 I will try it
# Mar 12th 2018, 14:26 raul338 That migth work
# Mar 12th 2018, 14:26 neon1024 `'className' => \Raul\Examples\ExamplesTable::class`
# Mar 12th 2018, 14:26 raul338 I thought about using plugins, but I do not konw yet if I can use App model / helpers inside Plugin Models / templates
# Mar 12th 2018, 14:25 neon1024 I would use a class constant in the ‘className’ option of the association
# Mar 12th 2018, 14:25 raul338 Sure, Any clue how should I defined belongsTo / hasMany ?
# Mar 12th 2018, 14:23 neon1024 I’ve never tried loading objects from outside convention
# Mar 12th 2018, 14:22 neon1024 You might also run into some issue with the TableRegistry, and need to build your own TableLocator class
# Mar 12th 2018, 14:22 neon1024 Sure there is, you can do whatever you want. However, be sure to use the correct namespaces, and declare all the correct class settings in your Tables and Entities
# Mar 12th 2018, 14:21 raul338 All links I found on google refer to cake 2
# Mar 12th 2018, 14:21 raul338 Is there any way to organize table/entities in subfolders like controllers in prefixes?
# Mar 12th 2018, 14:20 raul338 Hello
# Mar 12th 2018, 14:18 dorxy ok, will do!
# Mar 12th 2018, 14:11 lorenzo @dorxy open a ticket about it, please
# Mar 12th 2018, 13:30 dorxy the provided documentation ```loadEntities Defaults to false. Set to true to enable loading of <!ENTITY definitions. This is disabled by default for security reasons.``` is also not completely correct
# Mar 12th 2018, 13:17 slackebot checking for DOCTYPE statements myself before handing it off to the parent. Perhaps there should be an extra (default) option not allowing DOCTYPE statements in XML parsed in the body of a request? If wanted I can provide a test case to reproduce the behavior.
# Mar 12th 2018, 13:17 dorxy hi contributors! our application was PEN-tested and they made use of an XXE attack, but it was not with external entities but internal entities. I have looked at the XML::_loadXML function and while libxml_disable_entity_loader is properly set, the internal references are still expanded, making any request run out of memory real fast for large nested internal references. I'm resolving it now by extending the RequestHandler::convertXML and
# Mar 12th 2018, 13:10 dereuromark ->getController->getViewBuilder() etc
# Mar 12th 2018, 13:03 jbehling how can used viewBuilder in meu Component?
# Mar 12th 2018, 12:45 joddit Logically it doesn't sound possible
# Mar 12th 2018, 12:45 joddit See what I mean about calling ->where() after the map and reduce, but no examples show using any data that is produced by the map/reduce process
# Mar 12th 2018, 12:44 joddit https://book.cakephp.org/3.0/en/orm/retrieving-data-and-resultsets.html#stacking-multiple-operations
# Mar 12th 2018, 12:41 joddit Is it out of the question to do a second query?
# Mar 12th 2018, 12:40 joddit Keep in mind "For those cases, the Query object offers the mapReduce() method, which is a way of processing results once they are fetched from the database."
# Mar 12th 2018, 12:39 joddit Depends on how you're using it
# Mar 12th 2018, 12:39 pedroseco even when the field is created on formatresults()?
# Mar 12th 2018, 12:37 joddit You should be able to add ->where() to your query object no problem
# Mar 12th 2018, 12:36 pedroseco On mobile atm, just wanted to have a ideia what would be the best practice on this case
# Mar 12th 2018, 12:33 joddit Maybe paste something on gist so we can take a look
# Mar 12th 2018, 12:31 pedroseco I calculated a value during mapping and I also want to filter my results by that value
# Mar 12th 2018, 12:30 pedroseco yes that is correct
# Mar 12th 2018, 12:25 joddit I guess I'd have to see how you were using it
# Mar 12th 2018, 12:24 joddit So you want to take a value that you calculated during the mapping process and use it in a where clause? O_o
# Mar 12th 2018, 12:22 pedroseco I mean, I already use where() to filter data before, I just need to filter it again by the value I create after.
# Mar 12th 2018, 12:22 pedroseco in this case yes, since I want to filter data from a dynamic field I create on formatResults()
# Mar 12th 2018, 12:20 joddit The where clause is inappropriate to add earlier?
# Mar 12th 2018, 12:17 pedroseco How can i search using ->where() on a query where i manipulated the results by using map/reduce with formatResults() ?
# Mar 12th 2018, 12:17 Martin` hi
# Mar 12th 2018, 12:17 joddit Hi
# Mar 12th 2018, 12:17 pedroseco Hi guys.