Join GitHub today
Allow passing objects to the url helper #4178
I can't be the only person that hates doing
echo $this->url('route', array('id' => $model->getId(), 'slug' => $model->getSlug()));
since they map directly it would be nice to just do
echo $this->url('route', $model);
An idea would also be to check if the model/entity has a toArray method if the ArrayUtils fails.