public function prePersist(LifecycleEventArgs $args)
    {
        $object = $args->getObject();
        if ($object instanceof UploadObjectInterface) {
            $this->prepareUploadFileReferences($object);
        }
    }
public function prePersist(LifecycleEventArgs $args)
    {
        $object = $args->getObject();
        if ($object instanceof UploadObjectInterface) {
            $this->prepareUploadFileReferences($object);
        }
    }
public function prePersist ( LifecycleEventArgs $ args ) { $ object = $ args -> getObject ( ) ; if ( $ object instanceof UploadObjectInterface ) { $ this -> prepareUploadFileReferences ( $ object ) ; } }
Prepares upload file references for a new object implementing the UploadObjectInterface.

@param LifecycleEventArgs $args
Prepares upload file references for a new object implementing the UploadObjectInterface .