Michal Mäsiar
Michal Mäsiar
You can also set $timestamps property in Model to false: https://laravel.com/docs/8.x/eloquent#timestamps
You can also disable it only in certain times as folows: ``` $object->timestamps = false; $object->save(); ``` [https://stackoverflow.com/a/26689939/5135006](https://stackoverflow.com/a/26689939/5135006)
I have noticed new commit today, so asking same question: Any plans for new release?
When I try debug method matchRequest in Sonata\PageBundle\Site\BaseSiteSelector `$site->getRelativePath()` returns `"/"` `sprintf('@^(%s)(/.*|$)@', $site->getRelativePath())` returns `"@^(/)(/.*|$)@"`, and `$requestPathInfo` contains `"/project/example/"`. Preg_match doesn´t match anything. Is regex correct? ``` protected function matchRequest(SiteInterface...
> > When I try debug method matchRequest in Sonata\PageBundle\Site\BaseSiteSelector `$site->getRelativePath()` returns `"/"` `sprintf('@^(%s)(/.*|$)@', $site->getRelativePath())` returns `"@^(/)(/.*|$)@"`, and `$requestPathInfo` contains `"/project/example/"`. Preg_match doesn´t match anything. Is regex correct? > >...
https://github.com/sonata-project/SonataPageBundle/issues/752 - simmilar issue. Dynamic page should be definitely better documented, how to use it, maybe someone, who used this functionality in his/her projects could provide more information. I will...
"@^(/)(/.*|$)@" regex in matchRequest in Sonata\PageBundle\Site\BaseSiteSelector causes / as default site relative path is not supported.
So if default site relative path cannot be / - is it bug or is it intended?
I mean only / (without dash). I wanted to use / for default site and /en for English site.
Just to clarify: /en works, /anything works, but / doesn´t. Regex is sprintf('@^(%s)(/.*|$)@', $site->getRelativePath())