The method getFile() does not seem to exist on object<AppBundle\Entity\S3\Image>.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
Loading history...
41
if ($object->getOldS3key()) {
42
$this->s3->removeImage($object->getOldS3key());
43
}
44
$this->s3->upload($object);
45
}
46
}
47
5
}
48
49
/**
50
* @param LifecycleEventArgs $args
51
*/
52
2
public function prePersist(LifecycleEventArgs $args)
53
{
54
2
$object = $args->getObject();
55
56
2
if ($object instanceof Image) {
57
$this->s3->upload($object);
58
}
59
2
}
60
61
/**
62
* @param LifecycleEventArgs $args
63
*/
64
public function postRemove(LifecycleEventArgs $args)
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.