It's also the way you deal with a persistant DB in dev envs, otherwise your transient containers take all their data with them
Issue is documented here (FYI) https://github.com/silverstripe/silverstripe-framework/issues/8099
When setting TEMP_PATH to e.g. "silverstripe-cache" in the .env file, the cache folder is created inside the public folder instead of the base path.
Is this the expected output? If yes, is there another way to set the cache folder to the root path instead of using a rather "hacky" ../silverstripe-cache? Because defining it in the _config.php throws an error that it's already defined.
Steps to Reproduce
• Use public folder structure. • Set e.g. TEMP_PATH in .env fileHide attachment content
She's still there and causing problems
By default, SilverStripe will write its cache files to "/tmp/silverstripe-cache-whatever" (You can alter that by declaring
TEMP_DIR as an environment var) or if SilverStripe encounters a "silverstripe-cache" dir in its document root, it will use that. Use any one of these that suits you and your app, and map it to a Docker volume within your
@Nik Have a look at
Looks good, although I don't get how
summary_fields resolves a method without a
getMethod? An entry named
SomeMethod will work, even without having a
getSomeMethod function, but just a
SomeMethod function. How? Follow up would be how dot notation is being parsed, although for that I found
GridFieldDataColumns.getValueFromRelation - not sure if it's the correct one
$summary_fields will resolve methods without a "get" prefix, only if they're declared either as first-class, class-properties or through having been declared as a "Field" (which silverstripe defines as being a field in
$db or in
You can test this by declaring a randomly method
Wibble() that returns the string "Pencils up nose" (Blackadder episode...) and calling it from
If that works, and your
GridField displays a column each of who's cells shows "Pencils up nose", then I couldn't tell you what sorcery was doing that...
Can I ask why you might want to do this?
Interesting question. The
::create() name is widely used in many factories, in and outside of SilverStripe land.
The one that uses a picture of a conductor and not a composer... LOL
Anyway - the answer to your question should be found in the composer docs