public function getName() { if ($this instanceof ProviderFactoryInterface) { $this->name = $this->createProvider($this->getForeignEntity())->getDefinition()->getTableName(); } return $this->name; }