Answer the question
In order to leave comments, you need to log in
How to store arrays of objects in a property of another object?
for example, there is a
class Path
{
$name
$href
}
and there is a
class Product
{
private $someProperty
private $someProperty2
}
where someProperty is an array of Path classes
and someProperty2 is also an array, but
it seems to me that it’s not very
possible to use an array for other classes then a smarter collection class that can be used for such cases?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question