IdReader

class IdReader A utility for reading object IDs. Methods __construct(ObjectManager $om, ClassMetadata $classMetadata) bool isSingleId() Returns whether the class has a single-column ID. bool isIntId() Returns whether the class has a single-column integer ID. mixed getIdValue(object $object) Returns the ID value for an object. string getIdField() Returns the name of the ID field. Details __construct(ObjectManager $om, ClassMetadata $cl

IdReader::getIdValue()

mixed getIdValue(object $object) Returns the ID value for an object. This method assumes that the object has a single-column ID. Parameters object $object The object Return Value mixed The ID value

Stopwatch::isStarted()

bool isStarted(string $name) Checks if the event was started. Parameters string $name The event name Return Value bool

MergeDoctrineCollectionListener::onBind()

onBind(FormEvent $event) deprecated deprecated since version 3.1, to be removed in 4.0. Use {@link onSubmit()} instead. Alias of {@link onSubmit()}. Parameters FormEvent $event

RouteCollectionBuilder::add()

Route add(string $path, string $controller, string|null $name = null) Adds a route and returns it for future modification. Parameters string $path The route path string $controller The route's controller string|null $name The name to give this route Return Value Route

PdoCaster

class PdoCaster Casts PDO related classes to array representation. Methods static castPdo(PDO $c, array $a, Stub $stub, $isNested) static castPdoStatement(PDOStatement $c, array $a, Stub $stub, $isNested) Details static castPdo(PDO $c, array $a, Stub $stub, $isNested) Parameters PDO $c array $a Stub $stub $isNested static castPdoStatement(PDOStatement $c, array $a, Stub $stub, $isNested) Par

Kernel::getCacheDir()

string getCacheDir() Gets the cache directory. Return Value string The cache directory

RouterHelper::url()

string url(string $name, mixed $parameters = array(), bool $schemeRelative = false) Generates a URL reference (as an absolute URL or network path) to the route with the given parameters. Parameters string $name The name of the route mixed $parameters An array of parameters bool $schemeRelative Whether to omit the scheme in the generated URL reference Return Value string The generated URL reference See also UrlGeneratorInterface

HelperSet::getIterator()

Helper[] getIterator() Return Value Helper[]

RedirectResponse::create()

static Response create($url = '', int $status = 302, array $headers = array()) Factory method for chainability. Example: return Response::create($body, 200) ->setSharedMaxAge(300); Parameters $url int $status The response status code array $headers An array of response headers Return Value Response