We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, thanks for good library How I can use method haveInRepository() with readonly property, Example: simple entity with embeddable property
#[Entity] class User { public function __construct( #[Embedded(class: Address::class)] private Address $address ) { } public function getAddres(): Address { return $this->address; } } #[Embeddable] class Address { #[Column(type: "string")] private readonly string $street; #[Column(type: "string")] private readonly string $city; }
I want use method haveInRepository() for creating test entities like this
$I->haveInRepository(new User( address: new Address( street: 'Test street', city: 'Toronto' ); );
But got error after run Cest:
[LogicException] Attempting to change readonly property Address::$street.
How I can fix it? Thanks
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, thanks for good library
How I can use method haveInRepository() with readonly property,
Example: simple entity with embeddable property
I want use method haveInRepository() for creating test entities like this
But got error after run Cest:
[LogicException] Attempting to change readonly property Address::$street.
How I can fix it? Thanks
The text was updated successfully, but these errors were encountered: