insertCustomers example

$this->validateStream($stream);

        $this->getManager()->persist($stream);
        $this->getManager()->flush($stream);

        if ($index) {
            $this->indexStream($stream);
        }

        if (\array_key_exists('customers', $data) && $stream->isStatic()) {
            $this->insertCustomers($data['customers']$stream->getId());
        }

        return $stream;
    }

    /** * @param int $id * @param bool $index * * @throws NotFoundException * @throws ParameterMissingException * @throws ValidationException * * @return CustomerStreamEntity */
Home | Imprint | This part of the site doesn't use cookies.