/**
  * Creates a property mapping object which contains the
  * configuration for the specified uploadable field.
  *
  * @param object $obj The object.
  * @param string $field The field.
  * @return null|PropertyMapping The property mapping.
  */
 public function fromField($obj, $field)
 {
     $class = $this->adapter->getReflectionClass($obj);
     $this->checkUploadable($class);
     $annot = $this->driver->readUploadableField($class, $field);
     if (null === $annot) {
         return null;
     }
     return $this->createMapping($obj, $annot);
 }