Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EntityAdapter, private properties, doctrine entity #209

Open
matak opened this issue Mar 28, 2024 · 0 comments
Open

EntityAdapter, private properties, doctrine entity #209

matak opened this issue Mar 28, 2024 · 0 comments

Comments

@matak
Copy link

matak commented Mar 28, 2024

Nějak nemůžu přijít na to jak namapovat entity k serializaci do openapi a k deserializaci.

Koukám do zdroje EntityAdapter a vidím, že prochází pouze public properties, ale co entity

class CompletionPackageEntity
{


	public function __construct(
		/** @var array<string,WeightProduktVariantaEntity> */
		protected array                                 $weightOfItems,
		/**
		 * @var ArrayOfCompletionPackageDokladEntity|null
		 */
		protected ?ArrayOfCompletionPackageDokladEntity $data,
		/** @var array<string,string> */
		protected array                                 $EANtoProduktVarianta,
		protected bool                                  $iAmNotOwner
	)
	{
		
	}

	public function addWeightOfItem(string $weight): void
	{
		$this->weightOfItems[] = $weight;
	}

přesto, že existují public gettery tak je pro EntityAdapter tato entity prázdná.

Má to nějaké řešení? Jak jsou třeba mapovány doctrine entity? Musím EntityAdapter přepsat? Existuje už nějaký přepsaný?

díky za rady

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant