Nextras\Orm\Relationships\HasMany::getRawValue PHP Метод

getRawValue() публичный Метод

Returns primary values of enitities in relationship.
public getRawValue ( ) : mixed[]
Результат mixed[]
    public function getRawValue()
    {
        $primaryValues = [];
        foreach ($this->getIterator() as $entity) {
            if ($entity->isPersisted()) {
                $primaryValues[] = $entity->getValue('id');
            }
        }
        return $primaryValues;
    }