The property translations does not seem to exist. Did you mean isTranslationsMappedByLocale?
An attempt at access to an undefined property has been detected. This may either be a typographical error
or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods
to allow access. See the php core documentation on Overloading.
Loading history...
14
15
3
return $this;
16
}
17
18
6
public function getTranslation(string $locale, bool $useFallbackLocale = true): ?EntityTranslationInterface
19
{
20
6
if ($this->isTranslationsMappedByLocale === false) {
The property translations does not seem to exist. Did you mean isTranslationsMappedByLocale?
An attempt at access to an undefined property has been detected. This may either be a typographical error
or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods
to allow access. See the php core documentation on Overloading.
Loading history...
25
26
6
if ($translation === null && $useFallbackLocale === true) {
27
2
return $this->getFallbackTranslation();
28
}
29
30
5
return $translation;
31
}
32
33
2
private function getFallbackTranslation()
34
{
35
2
if (null === $translation = $this->translations->first()) {
The property translations does not seem to exist. Did you mean isTranslationsMappedByLocale?
An attempt at access to an undefined property has been detected. This may either be a typographical error
or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods
to allow access. See the php core documentation on Overloading.
Loading history...
36
throw new \ErrorException(sprintf('You are trying to get translation for %s with ID %s but there\'s no translations found.', self::class, $this->id));
The property translations does not seem to exist. Did you mean isTranslationsMappedByLocale?
An attempt at access to an undefined property has been detected. This may either be a typographical error
or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods
to allow access. See the php core documentation on Overloading.
The property translations does not seem to exist. Did you mean isTranslationsMappedByLocale?
An attempt at access to an undefined property has been detected. This may either be a typographical error
or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods
to allow access. See the php core documentation on Overloading.
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.