Questions tagged with key

1 answer

0 votes

Asked by TheWorldofDan, on 3/11/09 in

Security::cipher()

I'm using the AutoLogin component Miles Johnson to add a 'remember me' feature to my login page.

All the while that debug is set to 0, it seems to work fine, but as soon as debug is higher than 1 I get the following error message at the top of...

1 answer

0 votes

Asked by emptywalls, on 16/12/09 in

How do I change the primary key during a bindModel?

I'm trying to use bindModel to bind two models together. The problem I'm having is that during a bindModel, I can't seem to get the $primaryKey function working. I don't want to bind the primary keys.

I've seen this documentation about...

1 answer

0 votes

Asked by sebb86, on 12/1/10 in

How to check the validness of a foreign-key (must contained in primary-key list)?

Hello,

when i add a new data-row, in some times i have to enter a foreign-key-id. How can i check, that this entered value is valid (= is known in the linked table with the primary key)?

Can i check it with the core validation rules? The...

1 answer

0 votes

Asked by sebb86, on 19/1/10 in

dropdown field (menu) for foreign-key values?!?

Hello,

in my add-view:


<h2><b>add a mac address</b></h2>
<br>

<?php
echo $form->create('MacAddress');
  echo $form->input('hardware_unit_id');
  echo $form->input('description');
echo $form->end('save mac address');
?>

the field...

1 answer

0 votes

Asked by GrzegorzPawlik, on 22/3/10 in

Is there function that tells if field name is a FK or not?

When passing string "*_id" says true, and otherwise false (based on convention)

I know how to do this by myself, bu I wonder if there's any core function to do that?

0 answers

0 votes

Asked by renanaugustosr123, on 16/4/10 in

Composite key

Dear,

Someone must have encountered a situation where a table had

with composite key.

what did you do? Since CakePHP recognizes only one field to

primaryKey!

In my opinion I see two possibilities:

1 - not create tables with composite keys. When you...

1 answer

0 votes

Asked by renanaugustosr123, on 16/4/10 in

Composite key

Dear,

Someone must have encountered a situation where a table had

with composite key.

what did you do? Since CakePHP recognizes only one field to

primaryKey!

In my opinion I see two possibilities:

1 - not create tables with composite keys. When you...

1 answer

0 votes

Asked by webria, 1 week, 1 day ago in

CakePHP and a NoSQL style db

Hi,

We are looking to build a project which needs to be scalable and with fast read writes to the db. We are looking at using the NoSQL style of database design, mainly storing the data in key value pairs in a regular MySQL database.

With regard to...

<< previous next >>