Joe

ok what about this…

  1. $regions = Member::get()->relation('Regions');
  2. $countries = Region::get()->byIDs($regions)->relation('Country');
dorsetdigital

My ORM foo is weak today:

Regions has_one Country (Country has_many Regions) Regions many_many Member (Member belongs_many_many Regions)

I need to get a list of countries which have members allocated to them, and I seem to be getting lost in pointless loops. Is there an easy solution I'm missing?

dorsetdigital

Never mind... a couple of flushes seems to have sorted it

🚽 (2)
dorsetdigital

Keep getting a 'Trait not found' error... which is odd

dorsetdigital

Is there any reason I wouldn't be able to use a Trait in a build task?

Mo

I am trying to work out why I am getting strange results from Travis...

Mo

Hey all, anyone know of a docker config for running SS4 with PostgreSQL?

frontiex

Thanks everyone, I got @dorsetdigital’s suggested module working 🙂

wmk

afaik you need to manually include the relevant javascript in frontend. It's just automatically injected in CMS @frontiex

wmk

@frontiex see https://github.com/praxisnetau/silverware-datepicker/issues/3 and https://slackarchive.silverstripe.org/slack-archive/message/280963

Show 3 attachment(s)
guyvanbael

Just installed it, but userforms still tries to use native html5 datepicker

guyvanbael

Just installed it, but userforms still tries to use native html5 datepicker

slackarchive.silverstripe.org  
Slack Archive - Message by wmk | SilverStripe Users Slackarchive

Had to include that module on a frontend site. It enhances DateField, so when you include css and js, it works out of the box. I also commented on an issue in a related module (simple datepicker, not calendar with time): https://github.com/praxisnetau/silverware-datepicker/issues/3

Hide attachment content
frontiex

Yep I have added that code as well 🙂 Thanks 🙂