/var/www/vhosts/ihelp.ro/_OLD/vendor/cakephp/cakephp/src/ORM
NameSizeModeActions
Association/-0755rm
Behavior/-0755rm
Exception/-0755rm
Locator/-0755rm
Rule/-0755rm
Association.php406730644editdlrm
AssociationCollection.php118650644editdlrm
AssociationsNormalizerTrait.php23190644editdlrm
Behavior.php142110644editdlrm
BehaviorRegistry.php92990644editdlrm
composer.json13040644editdlrm
EagerLoadable.php80440644editdlrm
EagerLoader.php312430644editdlrm
Entity.php27630644editdlrm
LazyEagerLoader.php66700644editdlrm
LICENSE.txt12040644editdlrm
Marshaller.php333660644editdlrm
PropertyMarshalInterface.php14150644editdlrm
Query.php469990644editdlrm
README.md68480644editdlrm
ResultSet.php152890644editdlrm
RulesChecker.php102760644editdlrm
SaveOptionsBuilder.php57080644editdlrm
Table.php1085540644editdlrm
TableRegistry.php49660644editdlrm
Edit: /var/www/vhosts/ihelp.ro/_OLD/vendor/cakephp/cakephp/src/ORM/TableRegistry.php (4966B)
setConfig('Users', ['table' => 'my_users']); * * // Prior to 3.6.0 * TableRegistry::config('Users', ['table' => 'my_users']); * ``` * * Configuration data is stored *per alias* if you use the same table with * multiple aliases you will need to set configuration multiple times. * * ### Getting instances * * You can fetch instances out of the registry through `TableLocator::get()`. * One instance is stored per alias. Once an alias is populated the same * instance will always be returned. This reduces the ORM memory cost and * helps make cyclic references easier to solve. * * ``` * $table = TableRegistry::getTableLocator()->get('Users', $config); * * // Prior to 3.6.0 * $table = TableRegistry::get('Users', $config); * ``` * * @deprecated 4.1.0 Use {@see \Cake\ORM\Locator\LocatorAwareTrait::getTableLocator()} * or \Cake\Datasource\FactoryLocator::get('Table') to get the table locator instance instead. */ class TableRegistry { /** * Returns a singleton instance of LocatorInterface implementation. * * @return \Cake\ORM\Locator\LocatorInterface */ public static function getTableLocator(): LocatorInterface { /** @var \Cake\ORM\Locator\LocatorInterface */ return FactoryLocator::get('Table'); } /** * Sets singleton instance of LocatorInterface implementation. * * @param \Cake\ORM\Locator\LocatorInterface $tableLocator Instance of a locator to use. * @return void */ public static function setTableLocator(LocatorInterface $tableLocator): void { FactoryLocator::add('Table', $tableLocator); } /** * Get a table instance from the registry. * * See options specification in {@link TableLocator::get()}. * * @param string $alias The alias name you want to get. * @param array $options The options you want to build the table with. * @return \Cake\ORM\Table * @deprecated 3.6.0 Use {@link \Cake\ORM\Locator\TableLocator::get()} instead. Will be removed in 5.0. */ public static function get(string $alias, array $options = []): Table { return static::getTableLocator()->get($alias, $options); } /** * Check to see if an instance exists in the registry. * * @param string $alias The alias to check for. * @return bool * @deprecated 3.6.0 Use {@link \Cake\ORM\Locator\TableLocator::exists()} instead. Will be removed in 5.0 */ public static function exists(string $alias): bool { return static::getTableLocator()->exists($alias); } /** * Set an instance. * * @param string $alias The alias to set. * @param \Cake\ORM\Table $object The table to set. * @return \Cake\ORM\Table * @deprecated 3.6.0 Use {@link \Cake\ORM\Locator\TableLocator::set()} instead. Will be removed in 5.0 */ public static function set(string $alias, Table $object): Table { return static::getTableLocator()->set($alias, $object); } /** * Removes an instance from the registry. * * @param string $alias The alias to remove. * @return void * @deprecated 3.6.0 Use {@link \Cake\ORM\Locator\TableLocator::remove()} instead. Will be removed in 5.0 */ public static function remove(string $alias): void { static::getTableLocator()->remove($alias); } /** * Clears the registry of configuration and instances. * * @return void * @deprecated 3.6.0 Use {@link \Cake\ORM\Locator\TableLocator::clear()} instead. Will be removed in 5.0 */ public static function clear(): void { static::getTableLocator()->clear(); } }