Log message #4265022

# At Username Text
# Jun 9th 2021, 09:48 eax Thanks @ndm! But doesn’t that require me to have the lft and rght fields in my table?
# Jun 9th 2021, 09:46 ndm @eax If you have a nested set, then you can use the `path` finder: `find('path', ['for' => $childId])` https://book.cakephp.org/3/en/orm/behaviors/tree.html
# Jun 9th 2021, 09:30 eax Hey folks! Cake3 question: Is it possible to do a “reverse” threaded find? I have the “bottom” child, and would like to get the parents all the way “up” in the same Query :$
# Jun 9th 2021, 07:46 philo.hamel that's what we use to continue to use the property access
# Jun 9th 2021, 07:45 dereuromark Saves also inline type annotations
# Jun 9th 2021, 07:45 birdy247 So maybe we do that ->property for any code that has got defined properties
# Jun 9th 2021, 07:44 dereuromark If u know the fields exist, use prop access imo.
# Jun 9th 2021, 07:44 birdy247 Yes, good point
# Jun 9th 2021, 07:43 dereuromark Get method is better for generic Code, like behaviors often. Phpstan likes it more then
# Jun 9th 2021, 07:43 birdy247 I prefer the look of ->property in the code
# Jun 9th 2021, 07:30 philo.hamel this, and I also use `$entity->property` because it's less error prone and easier with refactoring, but it's an interesting question so I'm also interested to hear from `$entity->get('property')` users
# Jun 9th 2021, 07:27 jpramirez If you define the properties' types in the entity's annotations, your IDE and static analyzers will prefer `$entity->property`.
# Jun 9th 2021, 07:16 birdy247 Do people recmoned direct access $entity->property or $entity->get('property')
# Jun 9th 2021, 07:15 birdy247 When accessing a property in cake 3
# Jun 8th 2021, 15:08 neon1024 Ah, simple `applyOptions`
# Jun 8th 2021, 15:07 neon1024 So now I wonder how to pass `beforeFind` options to contained associations
# Jun 8th 2021, 15:06 neon1024 Found my issue, it was a beforeFilter in a table class that I am containing!
# Jun 8th 2021, 14:36 neon1024 I loop the data, so I’ve been filthy and solved it in the php :grimacing:
# Jun 8th 2021, 14:36 neon1024 Hah, fair enough
# Jun 8th 2021, 14:35 ndm @neon1024 That reads as if every sentence is missing like 4 or 5 words :P But it kinda sounds like you want to use `leftJoinWith()`, as `matching()` uses an `INNER` join, so you cannot use it for optional filtering.
# Jun 8th 2021, 13:39 paolo.bragagni ,:)
# Jun 8th 2021, 13:39 paolo.bragagni till now I port (to 4) csv :P
# Jun 8th 2021, 13:38 paolo.bragagni and use tinybutstrong to build their own odt template
# Jun 8th 2021, 13:37 paolo.bragagni me too. cls - xlsx - and pdf
# Jun 8th 2021, 13:37 kevin.pfeifer I let users download a XLSX
# Jun 8th 2021, 13:36 paolo.bragagni do you advice to use other lib ?
# Jun 8th 2021, 13:36 paolo.bragagni I only need pdf library to let users download as pdf index table
# Jun 8th 2021, 13:34 neon1024 I was so sure I managed it before using a combination of `matching()` and `notMatching()`, but I can’t find the post now
# Jun 8th 2021, 13:34 kevin.pfeifer @neon1024 sorry, but your query filtering questions are a bit too high for me so I can’t help you ,:)
# Jun 8th 2021, 13:33 admad Fair enough
# Jun 8th 2021, 13:32 paolo.bragagni I had in my old temp'late and I'm desperately trying to port all 'old' work in cake4 ..
# Jun 8th 2021, 13:32 paolo.bragagni thanks @admad
# Jun 8th 2021, 13:30 erwane i'm using it in all my projects they need PDF ... just because i know it. I like the specific text/image positioning. Every time i want to switch, i always found "html to pdf" library type, not my needs. Maybe i need to take time to test another one.
# Jun 8th 2021, 13:25 admad Never used this lib so don't know what extra features it provides over alternatives like DomPdf, mpdf.
# Jun 8th 2021, 13:23 admad "CORE LIBRARY STILL REQUIRES A SIGNIFICANT AMOUNT OF WORK TO BE COMPLETED" Doesn't seem it will be ready any time soon.
# Jun 8th 2021, 13:17 kevin.pfeifer well the “new” version is https://github.com/tecnickcom/tc-lib-pdf and stated `UNDER DEVELOPMENT (NOT READY)`
# Jun 8th 2021, 13:17 admad Or perhaps just switch to another lib.
# Jun 8th 2021, 13:16 admad Also "This version should be considered obsolete, new projects should use the new version as soon it will become stable."
# Jun 8th 2021, 13:12 kevin.pfeifer If a class doesn’t specify a namespace it will live in the root namespace, therefore \ And the TCPDF Class doesn’t specify any namespace (besides the fact, that its a file with 24k lines of code :nauseated_face:) https://github.com/tecnickcom/TCPDF/blob/456b794f1fae9aee5c151a1ee515aae2aaa619a3/tcpdf.php#L137
# Jun 8th 2021, 13:10 paolo.bragagni thanks @kevin.pfeifer I missed the '\' before TCPDF
# Jun 8th 2021, 13:08 neon1024 Is there any way in Cake 4's ORM to query where a parent is filtered by a association using `matching()`, but where the condition is either in the association, or there is no association? So the matching conditions would be either (A) or if the association is null. Where the foreign key is in the association, so I can’t add a where `foreign_key_id`