public function cloneInnerBuilder($property) { $this->checkDirectory(); $result = parent::cloneInnerBuilder($property); $result->setDirectory($this->directory . '/' . $property)->setPermissions($this->permissions)->setIdentityMap($this->identityMap); return $result; }
/** * @return Form **/ public function fillOwn($object, &$result) { Assert::isInstance($result, 'Form'); foreach ($this->getFormMapping() as $primitive) { if ($primitive instanceof PrimitiveForm && $result->exists($primitive->getName()) && $primitive->isComposite()) { Assert::isEqual($primitive->getProto(), $result->get($primitive->getName())->getProto()); continue; } $result->add($primitive); } $result = parent::fillOwn($object, $result); $result->setProto($this->proto); return $result; }