Hello!
I think my question is common enough and was asked before, but I didnt find something similar.
So, if I have 2 not-doctrine entities:
/**
* ApiResource
*/
class Parent
{
/**
/**
* @ApiProperty(identifier=true)
*
* @var int
*/
public $id;
/**
* @ApiSubresource()
*
* @var Child[]|null
*/
public $childs = [];
}
/**
* @ApiResource
*/
class Child
{
/**
* @ApiProperty(identifier=true)
*
* @var int
*/
public $id;
}
Then in GraphQl schema I see that both of these classes were recognized by SchemaBuilder, but Parent has no proper one-to-many link to Child - childs property has type Iterable instead of Child[].
What am I missing here?
Thanks.
Hello!
I think my question is common enough and was asked before, but I didnt find something similar.
So, if I have 2 not-doctrine entities:
Then in GraphQl schema I see that both of these classes were recognized by SchemaBuilder, but
Parenthas no proper one-to-many link toChild-childsproperty has typeIterableinstead ofChild[].What am I missing here?
Thanks.