Permalink
Commits on Mar 13, 2016
  1. Fix phpcs violation

    committed Mar 13, 2016
  2. Limit explode

    committed Mar 13, 2016
Commits on Mar 11, 2016
  1. Fix some phpcs issues

    committed Mar 11, 2016
  2. Allow specifying the defaultModel for a given set of PaginatorHelper …

    …calls
    
    This allows us to specify the Model once and have the prefix be properly applied to all subsequent Paginator calls. If the model is set to another value, then the prefix will be properly swapped to the associated prefix.
    committed Mar 11, 2016
  3. Properly handle sort links for multiple tables

    We have to rebuild the comparison for the sortKey, which *may* be incorrect if the user doesn't specify a fully-qualified `Table.field` pair, but instead only specifies the `model` field.
    
    Note that we use the `$defaultModel` if there is no specified model, in order to ensure normal usage of the PaginatorHelper continues to work.
    committed Mar 11, 2016
  4. Pull out prefix from model paging data

    This change *should* scope all urls for the particular options to *just* the model being processed.
    committed Mar 11, 2016
  5. Add prefix to staging options

    This will allow us to scope querystring parameters in the paginator helper to a specific model transparently.
    committed Mar 11, 2016
  6. Allow specifying a prefix on parsed options

    By specifying a 'prefix' option to the `paginate` call, we can index the passed querystring to get options scoped *specifically* for a given pagination call.
    
    For example, this change will allow the following controller code:
    
    ```
    $categories = $this->paginate('Categories', ['prefix' => 'Categories']);
    $posts = $this->paginate('Posts', ['prefix' => 'Posts']);
    ```
    
    And the following querystring:
    
    ```
    Categories[page]=1&Posts[page]=3
    ```
    
    Note that prefixes can be specified globally - that is, on the `$this->paginate` controller attribute - or scoped to a specific paginate call.
    
    This change does *not* affect PaginatorHelper parsing of the querystring.
    committed Mar 11, 2016
  7. Merge pull request #8444 from cakephp/master-fix-docblock-params

    Run sniffer to auto-fix default params into doc blocks.
    markstory committed Mar 11, 2016
Commits on Mar 10, 2016
  1. Merge pull request #8442 from curtisgibby/patch-1

    Add missing bracket in comment
    dereuromark committed Mar 10, 2016
  2. Merge pull request #8437 from cakephp/issue-8160

    Optimize postgres index/constraint reflection
    lorenzo committed Mar 10, 2016
  3. Merge pull request #8435 from davalb/pdo-fetch-style-obj

    added PDO-fetch-type FETCH_OBJ to PDOStatement
    lorenzo committed Mar 10, 2016
  4. Fix the queries for postgres index/constraint reflection.

    Fix up the proposed queries to do what they are supposed to.
    Schema\Table needed to have array_unique() added to accomodate the new
    postgres queries that return duplicate rows for each column in
    a multi-column foreign key. This isn't ideal but I couldn't figure out
    how to join tables together in postgres using array indicies.
    
    Refs #8160
    markstory committed Mar 10, 2016
Commits on Mar 9, 2016
  1. Merge pull request #8422 from cakephp/malformed-range

    Handle malformed Range headers without warnings.
    lorenzo committed Mar 9, 2016
  2. Merge pull request #8432 from chinpei215/i18n-context

    Fix __xn() and __dxn() so that plural forms are used.
    markstory committed Mar 9, 2016
  3. Fix incorrectly formatted messages used in test cases.

    PoFileParser returns different format actually.
    chinpei215 committed Mar 9, 2016
  4. Merge pull request #8430 from cakephp/issue-8419

    Add example of inflect option to RouteBuilder::resources()
    ADmad committed Mar 9, 2016
  5. Add example of inflect option.

    Refs #8419
    markstory committed Mar 9, 2016
  6. Merge pull request #8408 from SmiSoft/master

    XCache serialized
    markstory committed Mar 9, 2016
Commits on Mar 8, 2016
  1. gh #8160 : @markstory, Updating query to allow for multi column const…

    …raints and composite keys
    David Binney committed Mar 8, 2016
  2. Handle malformed Range headers without warnings.

    Don't emit warnings on malformed/invalid range headers. Also make
    parsing more robust and allow whitespace between significant tokens.
    markstory committed Mar 8, 2016
  3. Merge pull request #8421 from cakephp/assert-no-cookie

    Adding a assertCookieNotSet to the IntegrationTestCase
    markstory committed Mar 8, 2016
  4. Fix PHPCS error.

    markstory committed Mar 8, 2016
Commits on Mar 7, 2016