Skip to content

Instantly share code, notes, and snippets.

@jschroed91
Created March 19, 2015 22:00
Show Gist options
  • Save jschroed91/e2ef8098522bc1d03f4a to your computer and use it in GitHub Desktop.
Save jschroed91/e2ef8098522bc1d03f4a to your computer and use it in GitHub Desktop.
if (is_string($proposal)) {
$className = '\Caxy\ProposalBundle\Entity\\' . $proposal;
if (!class_exists($className)) {
return false;
}
$class = new \ReflectionClass($className);
$statuses = $class->getStatusPropertyValue('statuses');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment