cakephp-model Questions
7
My debug value is set to 2, and it's displaying all the queries, except the one I need.
I have an Items controller method that is calling this method in the User model (Item belongsTo User):
func...
Brighton asked 22/2, 2010 at 22:7
6
Solved
I have a registration form in which users can fill in two email address (email1 & email2). Marketing's requirement is that they need to be unique (unique as in if we had 10 users, then there wo...
Whacky asked 17/3, 2010 at 9:59
5
Solved
I have two tables with field username in both. How i can specify field name for both local and foreign table?
I want CakePHP will do something like
ON (`T1`.`username` = `T2`.`username`)`
in r...
Actinomycete asked 11/11, 2013 at 16:20
2
Solved
I have a very simple application with 1 table, each row contains a word, it's definition, and an example.
The definition and example fields are varchars(5000).
On every page, I have a sidebar whi...
Caudate asked 21/11, 2012 at 1:46
1
Solved
Using saveAll() to save multiple records in CakePHP, I am able to save them successfully in a table. But the problem arises while retrieving the IDs of those saved rows. LastInsertID() returns only...
Dorita asked 19/3, 2012 at 11:44
1
Solved
I'm writing an application which supports multiple units of measurement. In the rare event a user wanted to change their system of measurement, I need to run a query which applies a multiplier to s...
Disagree asked 29/8, 2011 at 20:34
3
I am new to cakephp.
I want to know if it is possible in cakephp to to handle multiple model commit and rollback with single transaction.
I want to do some thing like this
<?php
function add(){...
Sherysherye asked 10/6, 2010 at 9:57
3
Solved
I have 3 tables that contain user information, one for students, one for teachers and one for administrators.
They are not related in any way. I wan't to create a dashboard for the Administrators,...
Crenation asked 31/7, 2011 at 2:54
1
Solved
I realize that these might not necessarily be a huge performance issue, but I'd like to get rid of any unnecessary SHOW FULL COLUMNS FROM queries that Cake generates. I've tried using the Containab...
Cheat asked 15/3, 2011 at 15:9
1
© 2022 - 2024 — McMap. All rights reserved.