Skip to content
This repository was archived by the owner on Nov 14, 2018. It is now read-only.
This repository was archived by the owner on Nov 14, 2018. It is now read-only.

Choisces are not working  #42

@salehsed

Description

@salehsed

I have the following model but the admin throws exception

'''
/**
* @odm\String
* @Assert\Choice(callback = "getChoiceRoles")
*/
protected $role;

public static function getChoiceRoles()
{
return array( "choice1", "choice2" );
}

'''

Error:

'''

Expected argument of type "array or \Closure", "NULL" given
500 Internal Server Error - UnexpectedTypeException

'''

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions