GithubHelp home page GithubHelp logo

Comments (4)

jippi avatar jippi commented on August 15, 2024

can't reproduce - please provide software versions and short test or gist with a reproducible way to verify

from crud-view.

DinoSane avatar DinoSane commented on August 15, 2024

cakephp3 and
friendsofcake/bootstrap-ui (v0.3.3)
friendsofcake/crud (4.2.4)
friendsofcake/crud-view (dev-master 6d8f110)
friendsofcake/crud-view (dev-master 6d8f110)
friendsofcake/cakepdf (3.1.0)
friendsofcake/search (1.2.0)

predioTable
$this->hasMany('Pavimento', [
'foreignKey' => 'Predio_id',
'joinType' => 'INNER'
]);
PavimentoTable
$this->belongsTo('Predio', [
'foreignKey' => 'Predio_id',
'joinType' => 'INNER'
]);
Inflector::rules('uninflected', ['Predio']);
Inflector::rules('uninflected', ['Pavimento']);

I have a incremental search "template/Pavimento/edit.ctp" shows $associations filled but
"template/Pavimento/add.ctp" shows $associations empty

I tried to buid a simplification of my project but i could not...

from crud-view.

DinoSane avatar DinoSane commented on August 15, 2024

Well, i dont know if it is a feature or not, but the $associations is not filled because the it is created within ViewListener.php:beforeFind.
So, since once on add actions a "find" is not fired before view, $associations is empty...

from crud-view.

josegonzalez avatar josegonzalez commented on August 15, 2024

Closed by #110 :)

from crud-view.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.