Re: Help saving data with CakePHP 3.0 ORM

2014-02-04 Thread Carlos Javier Baeza Negroni
Also check the array: $data = ['name' => 'Walter White']; Should be: $data = array('name' => 'Walter White'); best regards. 2014-02-04 José Lorenzo : > Currently that is the most confusing part of the ORM and I'd like to make > it easier to understand in the next release preview. By default e

Using blocks for script and CSS files

2014-02-04 Thread Advantage+
Trying to figure this out. I understand the blocks as outlined in the book http://book.cakephp.org/2.0/en/views.html#using-blocks-for-script-and-css-fi les Simply add the scripts you need specific for that page and it gets places in the layout where you "fetch". Problem is when your req

Re: Help saving data with CakePHP 3.0 ORM

2014-02-04 Thread José Lorenzo
Currently that is the most confusing part of the ORM and I'd like to make it easier to understand in the next release preview. By default entities are protected agains mass assignment, this means that you cannot create them without configuring what properties can be set from the request. You ne

Help saving data with CakePHP 3.0 ORM

2014-02-04 Thread bato
Hi, I'm starting to play with 3.0 ORM and I encountered some issues saving data. I have two simple tables: - authors with fields id and name - posts with fields id, title, text and author_id I have fill tables with two authors and some posts by hand to try retrieving data with cake. I