Was just looking for the same thing ;)
Try $this->load('roles') in your function after attaching the new role. This will refresh the roles relationship. Not sure if this is best practice, though, but it works...
It worked for me too, it would be great to know if load() makes another query to the database, I also think it should do that by default.
Thanks, Shineability, that helped... You would indeed expect the relationships to be loaded by default after attaching..
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us