public function setAssignmentForIdentifier($identifier, $access = null)
    {
        if (is_array($identifier)) {
            foreach ($identifier as $identifier => $access) {
                $this->setAssignmentForIdentifier($identifier, $access);
            }
        } else {
            //not a real identifier just the
            //the name part.
            //we need to infer the whole identifier
            //com:[pluralized name].domain.entity.[name]

            if (strpos($identifier, '.') === false) {
                $identifier = 'com:'.AnInflector::pluralize($identifier).'.domain.entity.'.$identifier;
            }

            $assignment = $this->assignments->findOrAddNew(array('actortype' => $identifier));

            $assignment->access = $access;
        }
    }