krafthaus / bauhaus

Laravel 4 Admin Generator
http://bauhaus.krafthaus.nl/
GNU General Public License v2.0
1 stars 0 forks source link

Function "before" for attribute not working #68

Closed distroid closed 8 years ago

distroid commented 9 years ago

Hi, how can i use method "before" for custom methods? Exapmle:

$mapper->string('role')->before("\User::getLabel");

I have error

Call to undefined function \User::getLabel() 

but if i add hardcode function in your ListBuilder->build()

if ($clone->hasBefore()) {
    $before = $clone->getBefore();
    $value  = \User::getLabel($value);
}

all works, what am I doing wrong?