/** * @param Entry $obj * @param string|null $key */ public static function addInstanceToPool($obj, $key = null) { if (\Propel::isInstancePoolingEnabled()) { $path = $obj->getPath(); $pathKey = self::_pathKey($obj->getEntityType(), $path); EntryPeer::$instances[$pathKey] = $obj; parent::addInstanceToPool($obj, $key); } }