Please open a ticket at https://github.com/cakephp/cakephp/issues
This is just a discission board, not a bug tracker.
Mark
Am Samstag, 30. Januar 2016 05:33:10 UTC+1 schrieb Kim:
>
>
>- CakePHP's email validation allows non-ASCII letter characters, e.g.
>á, in the
- CakePHP's email validation allows non-ASCII letter characters, e.g. á,
in the local part of the email address (by the \p{L} unicode category
construct). This should not be allowed, see
https://en.wikipedia.org/wiki/Email_address#Local_part.
- It also allows non-ASCII
I've recently updated my application to 3.1.2 from 3.1.1. I'm encountering
an exception:
Exception: Cannot convert value to bool in
[PATHTO\vendor\cakephp\cakephp\src\Database\Type\BoolType.php, line 47]
I'm using MySQL and SQLite for database.
This error didn't occur in 3.1.1
When I
Router::reverse() is intended to convert the results of parse() in url string.
Reverse takes positional parameters in a different location which is how it
differs from url().
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You
/view/123 then Router::url(Router::parse($url)) =
/users/view?pass%5B0%5D=123
This leads to the following bug in my App:
// In UsersController
function login()
{
if ($this-request-is('post')) {
$user = $this-Auth-identify();
if ($user) {
$this-Auth-setUser
was the inverse
of Router::url.
In other words, I thought that $url ==
Router::url(Router::parse($url))would
always be true.
Just found out this was not the case.
If $url = /users/view/123 then Router::url(Router::parse($url)) =
/users/view?pass%5B0%5D=123
This leads to the following bug
was the inverse of
Router::url.
In other words, I thought that $url == Router::url(Router::parse($url))would
always be true.
Just found out this was not the case.
If $url = /users/view/123 then Router::url(Router::parse($url)) =
/users/view?pass%5B0%5D=123
This leads to the following bug in my App
found out this was not the case.
If $url = /users/view/123 then Router::url(Router::parse($url)) =
/users/view?pass%5B0%5D=123
This leads to the following bug in my App:
// In UsersController
function login()
{
if ($this-request-is('post')) {
$user = $this-Auth-identify
/view?pass%5B0%5D=123
This leads to the following bug in my App:
// In UsersController
function login()
{
if ($this-request-is('post')) {
$user = $this-Auth-identify();
if ($user) {
$this-Auth-setUser($user);
$url = $this-Auth-redirectUrl(); // let's say
It totally sounds like a mod_rewrite issue. You mentioned that cake 'hated'
being in rewriteless mode. What exactly happened?
-Mark
On Wednesday, 3 December 2014 14:14:41 UTC-5, florida...@gmail.com wrote:
Unknown bug in either setup or programming (not limited to Cake)
The combination: HP
Unknown bug in either setup or programming (not limited to Cake)
The combination: HP 15 Touchsmart Laptop w/ Win8.1 --- Wamp Server 2.5
-- Cakephp 2.5.5
I have looked online for 2 days now. There is no solution.
Originally thought it was a mod-rewrite issue. Issue is that blog
What does your session config data look like?
Mark
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
CakePHP group.
To unsubscribe from this group and stop
Thanks Mark
What debug data should i supply to confirm above issue?
On Tuesday, 22 April 2014 03:35:51 UTC+1, mark_story wrote:
I just checked locally on a new copy of CakePHP 2.5.0, and wasn't able to
reproduce the issue.
I used a baked MVC, SecurityComponent and set 'defaults' =
I just checked locally on a new copy of CakePHP 2.5.0, and wasn't able to
reproduce the issue.
I used a baked MVC, SecurityComponent and set 'defaults' = 'database' in
core.php for the session setup.
-Mark
On Friday, 18 April 2014 18:09:23 UTC-4, Mandar P wrote:
Any one have any idea how to
Any one have any idea how to fix this issue ?
Thanks,
Mandar
On Thursday, 17 April 2014 15:27:26 UTC+1, Mandar P wrote:
Hi,
Im using 2.5 to build simple crud application with csrf enabled.
When using php based sessions everything works fine but changing it to
database sessions csrf
Hi,
Im using 2.5 to build simple crud application with csrf enabled.
When using php based sessions everything works fine but changing it to
database sessions csrf black-hole occurs on edit form submission. Please
note that add form works absolutely fine irrespective of php/db based
session.
triggered, and so *old
session data is survived*.
7. Go to step 1 and continues looping, and PHP will dies either the whole
memory get filled up or time out.
To reproduce, we use this modified version of ComboSession to simulate the
problem: *(The following code is to demonstrate the bug
data is survived*.
7. Go to step 1 and continues looping, and PHP will dies either the whole
memory get filled up or time out.
To reproduce, we use this modified version of ComboSession to simulate the
problem: *(The following code is to demonstrate the bug, not a working
copy!)*
?php
$this-request-data['User']['id'] = $this-Auth-user('id');
You are assigning the administrator's id to the record. Unless your
administrator is trying to edit its own record, this is not what you want.
On Fri, May 17, 2013 at 2:23 PM, Guilherme Magno routma...@gmail.comwrote:
Hello people,
Hello people,
I'm having a big problem on the editing a User,
I use the following code:
class UsersController extends AppController {
public function beforeFilter() {
parent::beforeFilter();
}
...
public function edit($id = null) {
I add date_default_timezone_set('Europe/Paris') because Therese si an error
Wotherspoon strtotime
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
CakePHP group.
Hi, people!
I'm doing a manual login action, where i find the user based on your
username (findByUsername).
If the user exists, i want to force login the user to the AuthComponent.
Else, i register the user (success).
When i try to force the login of the user, i have a some kind of bug:
I
to force login the user to the AuthComponent.
Else, i register the user (success).
When i try to force the login of the user, i have a some kind of bug:
I try to login like this:
$this-Auth-login($user_exists['User']);
Where $user_exists['User'] contains all the User array with all the user
The value of self::started() can be true later on, when session is
actually started, right?
https://github.com/cakephp/cakephp/blob/master/lib/Cake/Model/Datasource/CakeSession.php#L187
I don't think it's a bug.
On Wednesday, March 13, 2013 1:26:19 AM UTC+1, Eduardo Barbosa Moreira
wrote
On Thu, Mar 14, 2013 at 6:07 AM, majna majna...@gmail.com wrote:
The value of self::started() can be true later on, when session is
actually started, right?
https://github.com/cakephp/cakephp/blob/master/lib/Cake/Model/Datasource/CakeSession.php#L187
I don't think it's a bug.
Oh, gosh
this bug?
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email
to cake-php
There is an inconsistent logic In the method start() in CakeSession class
(lib/Model/DataSource/CakeSession.php):
at line
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the
it was tested at line
183:
if (self::started()) {
return true;
}
Yeah, I'd say that one doesn't require a unit test to prove. It's in
the latest stable (2.3.1) and goes back to 2.0, when CakeSession first
appeared.
How can i report this bug?
You can log a ticket here:
https
deeper and put some debug info in the related
FileEngine.php and ApcEngine.php. Result: The functions (clear
clearGroup) in ApcEngine.php are never used - instead the ones of the
FileEngine.php are used. Its clear, that this does not work.
Is this a bug?
Ive debugged the $engine-variable
. Result: The functions (clear
clearGroup) in ApcEngine.php are never used - instead the ones of the
FileEngine.php are used. Its clear, that this does not work.
Is this a bug?
Ive debugged the $engine-variable in core.php. It is Apc like it should -
File isn't used at all anymore in my app.
Thanks
Running LAMP stack on RedHat EL6.1 x64, PHP 5.4.10, MySQL 5.5.29, and
CakePHP 1.3.15
I have a MySQL database named cms3.drupal and while CakePHP can connect to
it just fine, it can't see any of the tables. I could rename the database
(I did to test this issue and it worked fine), but that
Looks like this has already been reported, fixed but is still
broken.
http://cakephp.lighthouseapp.com/projects/42648/tickets/1357-database-name-cannot-contain-period
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this
authorization is denied.
Is this a bug? or a feature?
If feature, should I just remove any Allow's from AppController? or is
there another workaround?
Thanks,
Bill
--
View this message in context:
http://cakephp.1045679.n5.nabble.com/Auth-allow-bug-or-feature-tp5689260.html
Sent from the CakePHP mailing
Sounds like unfinished upgrade from 2.0 to 2.1
http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#making-actions-public
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org
-php
If you reply to this email, your
message will be added to the discussion below:
http://cakephp.1045679.n5.nabble.com/Auth-allow-bug-or-feature-tp5689260p5689350.html
To start a new topic under CakePHP, email
Its hard to understand why this conflit is still present in cake 2.1, as it
has been noticed by many people since version 1.2. I made tons of searches
in google and coudnt find any useful awnser.
I was testing it in cake 2.0, but when i figured out that it was a cake
problem i tryed to update
Its hard to understand why this conflit is still present in cake 2.1, as it
has been noticed by many people since version 1.2. I made tons of searches
in google and coudnt find any useful awnser.
I was testing it in cake 2.0, but when i figured out that it was a cake
problem i tryed to update
Using 2.1.1, but 2.0.6 is the same.
The names of my cached views look pretty strange:
en_archive_2_url_en_2farchive_2f2.php
en_archive_3_url_en_2farchive_2f3.php
en_archive_url_en_2farchive.php
en_contributors_2_url_en_2fcontributors_2f2.php
en_contributors_url_en_2fcontributors.php
Hi
I have the time in my database saved as GMT and also I use UTC in
cakephp (core file)
everything is working fine with niceShort and when I print the time
from database I get the time in GMT
but when I use timeAgoInWords I can see it's using the system time not
GMT.
is this a bug
Hi,
I've discovered a strange behavior in this-data. I have a form with
checkboxes that looks like this:
form action=/participants/xls method=post (...)
input type=checkbox name=data[Participant][1][id] value=1
id=Participant1Id/
input type=checkbox name=data[Participant][2][id] value=2
I think I've found a bug in Cake 2.1 with internal paginateCount.
I'm doing pagination with manually binding model:
$this-Topic-bindModel(array('hasOne'=array('CategoriesTopic')));
$contain['CategoriesTopic']=array();
$conditions[]=array('CategoriesTopic.category_id'=$cat);
The main paginate
On Friday, 9 March 2012 15:28:56 UTC, Rodrigo Rodrigues Moyle wrote:
Please, show you table schema and model association setup.
Everything follows conventions (as they should do wherever possible) so I
have:
Relevant table fields:
delegates (id, ..., booking_count, alternative_count, ...)
Please, show you table schema and model association setup.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this
On Thu, Mar 8, 2012 at 4:14 PM, Miles J mileswjohn...@gmail.com wrote:
I don't quite understand OP.
I don't think OP quite understands.
Tip of the hat to Dave D for parsing that, btw. I think this would
have bothered me for days.
--
Our newest site for the community: CakePHP Video Tutorials
Bad programming by cake php here. This bug still exists in version
2. Why does it rely on a css file existing? A lot of people will
alter the default template first (removing the default cake stuff),
then when they revisit the home page, this error shows incorrectly.
There should be a php
Where does Cake rely on a CSS file. How could any PHP program rely on a
css file, for that matter?
On Thursday, March 8, 2012 6:40:15 AM UTC-8, Phil wrote:
Bad programming by cake php here. This bug still exists in version
2. Why does it rely on a css file existing? A lot of people
because things aren't rendering
correctly? If so, I don't think you're supposed to use stuff from
that page; I'm pretty sure it's just there as a sanity check.
On Mar 8, 9:40 am, Phil pnicholl...@googlemail.com wrote:
Bad programming by cake php here. This bug still exists in version
2. Why does
Evening all,
Not sure if this is a core bug or if someone can highlight what I am doing
wrong.
I'm developing a site where after a company places a booking on a course
they can then review the booking and specify alternative delegates if one
or more of the original delegates cannot attend. I
I really do hope this is just a troll attempt, lol
On Thursday, 8 March 2012 14:40:15 UTC, Phil wrote:
Bad programming by cake php here. This bug still exists in version
2. Why does it rely on a css file existing? A lot of people will
alter the default template first (removing
I don't quite understand OP.
On Thursday, March 8, 2012 6:40:15 AM UTC-8, Phil wrote:
Bad programming by cake php here. This bug still exists in version
2. Why does it rely on a css file existing? A lot of people will
alter the default template first (removing the default cake stuff
Hi folks,
take the following example:
x different plugins with a SettingsController and an edit action
- /pluginone/settings/edit
- /plugintwo/settings/edit
- /pluginthree/settings/edit
...
I took a look at the _cake_core_ cache and noticed, that a key for the
first visited SettingsController
this is a known limitation of cake2.
I don't like it either. but thats how App::uses() works...
cake3 with namespaces will probably not have issues with this anymore.
but until then you need to name the controllers differently.
On 26 Feb., 16:46, worthy frank.fo...@googlemail.com wrote:
Hi
http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/1884-appload-no-plugin-mapping
Plugin objects should be placed under the `Plugin` key of the cache
array.
See App::_map() line 775 (cakephp 2.1)
Unfortunately, cakephp team keep saying that it's not a bug...
duplicated class names
the `Plugin` key of the cache
array.
See App::_map() line 775 (cakephp 2.1)
Unfortunately, cakephp team keep saying that it's not a bug...
duplicated class names...bla bla...and more contradictory arguments
(see App:._loadVendor() line 746)
---
So you will have to fix it by your self
Thanks for all the replies :).
The posts from the lighthouse ticket describe the exact same situation i
was running into. Thanks for the link and the info to fix it.
For the topic to not be a bug:
Of course duplicate class names in a non namespaced environment are a bad
idea, but in CakePHP
Hi everyone
Im developing an inhouse plugin to be shared by many apps. This plugin
has an app model which states that it should use a separate database
config which was working initially.
The problem occured when I set up a hasMany - belongsTo relationship
between universe_client.php and
Now that I've managed to get to my desk and do some odd jobs I prepared
this:
http://pastie.org/private/abmqskzlltxsi6afigbkzw
Maybe it'll help?
On 21 February 2012 08:10, Stephen Speakman
step...@ninjacodermonkey.co.ukwrote:
Hi everyone
Im developing an inhouse plugin to be shared by many
Okay! I'm a nutter! I didn't even read the docs properly on plugin model
relationships heh...
Changed my relationships to array(Universe.UniverseModelName); and it's
all better now :)
On 21 February 2012 10:41, Stephen step...@ninjacodermonkey.co.uk wrote:
Now that I've managed to get to my
and nothing is created!
Any Idea whats wrong? is it a bug?
I use last stable cake core 1.3.14.
Thanks a lot
Tomas
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP
i think, that you method viewActive is never executed directly by server,
you have to use underscored names, so view_active would be correct
public function view_ctive() {
$this-set('title_for_layout', 'View Active Users');
$this-layout = 'default_small_ad';
}
try now
Hi,
The 2.0 docs for changing layouts say this, which doesn't work:
public function viewActive() {
$this-set('title_for_layout', 'View Active Users');
$this-layout = 'default_small_ad';
}
That didn't work. This did:
function beforeRender() {
Hi,
Hello all,
i have made a logout button in my app.in userheader and header
respectively.But when i click on logout button it logs me out of app but
not from facebook and also after logging out from app again when i login it
doesnot delete the session but again logs me in via my facebook
Hi arti,
In your code both if-else statements say 'logout', one should be 'login'.
And I also dont see that you actually log off facebook. You just destroy the
cake session, the fb session is still valid.
If you want to use facebook with cake I recommend the Plugin by webtechnick. It
also
Hey Paul,
Thank you for the suggestion! I am a bit rusty with Cake and forgot
that I could do a SQL dump. It appears that it's not attempting to
insert rows for the data. Very strange. Since no one else has chimed
in, I'm guessing this is probably an issue with my code and not the
core
I must have been making a mistaking in my configuration. I was using
an array to manually specific the class name, table name, etc. I
changes it back to just specifying the class name so that everything
else would work automagically and then it started working again.
On Nov 18, 10:55 am, Will
Hi all,
I had some issues where one of my models was not saving. I was
getting the following error:
Conversion failed when converting date and/or time from character
string.
SQL Query: INSERT INTO [users] ([created], [modified], [username],
[password], [email]) VALUES ('NULL', 'NULL', N'test3',
Have you looked at the sql dump to see what's happening?
HABTM does delete all existing rows in the join table for the object your
are editing and should then replace them with the new options your chose.
Maybe it is doing the first part and not the second?!?
HTH, Paul.
--
Our newest site
Hi all,
I am using a form with multiple checkboxes to save a HABTM association
between two models. Upon updating my core CakePHP code, the save
stopped working properly. It appeared to wipe out the linking table
when I saved. Is anyone else having this problem?
--
Our newest site for the
There is an error in the auth components when i init the username auth
field only in beforfilter function :
$this-Auth-fields = array(
'username' = 'email'
);
i get a notice :
Notice (8): Undefined index: password [CORE\cake\libs\controller
\components\auth.php, line
I understand that you get an error in your case - my question is, do
you want to authenticate a user only by the user entering his/her e-
mail address? For that is what you are trying to do!
Auth is supposed to have to field names in the fields variable, but
you are only giving it one! See the
Try
$this-Auth-fields['username'] = 'email';
On 10 aug, 00:58, muslimbit muslim...@gmail.com wrote:
There is an error in the auth components when i init the username auth
field only in beforfilter function :
$this-Auth-fields = array(
'username' = 'email'
);
i
Hi. I found a bug in the
function updateAll of the cake 1.3.10 using postgresql. Passing the
value true to a boolean field, the system is sending '1 ', as is done
in mysql. Thanks!
FranciscoLima
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out
i think its a small mistake Cookie word should be title cased.
eg $this-Cookie-read('key')
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
$this - cookie - read('key') : read 'key' from cookie named
CakeCookie (by default)
$this - cookie - read('MyCookie.key') : read form another cookie
named MyCookie
Zo nooouuu BugZ
On May 26, 5:48 am, Yanchao yanchaow...@gmail.com wrote:
It indicate that we need to use the read function of
It indicate that we need to use the read function of cookie like this:
$this - cookie - read(Name.key) at line 234 of cake/libs/controller/
components/cookie.php
But it seems we need to use it like:
$this - cookie - read(key.Name) to make the function to work...
it seems line 250 and line 251
Thanks for clearing that up!
I am in the unfortunate situation where I have ZERO control over the
server, so I am at the mercy of php 4.3 :-(
On Mar 24, 4:32 pm, mark_story mark.st...@gmail.com wrote:
CakePHP maintains compatibility with PHP 4.4, nothing earlier.
-Mark
On Mar 23, 6:23 am,
CakePHP maintains compatibility with PHP 4.4, nothing earlier.
-Mark
On Mar 23, 6:23 am, designv...@gmail.com designv...@gmail.com
wrote:
I have just updated one of my apps to latest 1.2 version and found
that emails being sent by the app were broken due to cake using
PHP_EOL.
My server is
I have just updated one of my apps to latest 1.2 version and found
that emails being sent by the app were broken due to cake using
PHP_EOL.
My server is php4 and PHP_EOL is a php5 constant I think? I thought
1.2 was fully compatible with php4?
If it's not then I will rollback to the last working
*PHP_EOL* (string http://www.php.net/manual/en/language.types.string.php)
Available since PHP 4.3.10 and PHP 5.0.2 It's so that it generates the
correct newline for the correct OS.
Have anymore information on your issue?
On 23 March 2011 10:23, designv...@gmail.com designv...@gmail.com wrote:
Ahhh - I'm running 4.3.4
I have fixed it with:
if (!defined('PHP_EOL')) {
switch (strtoupper(substr(PHP_OS, 0, 3))) {
case 'WIN':
define('PHP_EOL', \r\n);
break;
case 'DAR':
define('PHP_EOL', \r);
break;
default:
Good idea :)
On 23 March 2011 11:23, designv...@gmail.com designv...@gmail.com wrote:
Ahhh - I'm running 4.3.4
I have fixed it with:
if (!defined('PHP_EOL')) {
switch (strtoupper(substr(PHP_OS, 0, 3))) {
case 'WIN':
define('PHP_EOL', \r\n);
break;
Hi, guys.
I pretend to load and initialize a component (e.g.
SomethingComponent), so I use something like:
ClassRegistry::init('Plugin.Something', 'Component')
The problem is that as in the line 140 of the file class-registry
(http://api.cakephp.org/view_source/class-registry/#line-99) we have
i usually use
App::import('Component', 'Plugin.Something');
and manually create a new object
On 23 Mrz., 00:35, labianchin luis.arman...@gmail.com wrote:
Hi, guys.
I pretend to load and initialize a component (e.g.
SomethingComponent), so I use something like:
'], $matches);
to:
preg_match_all('/\[(.+?)\]/', $options['name'], $matches);
Is this a bug or a change of behaviour?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
Just an FYI, I've experienced situations like this where Firebug and
the View Source seems so different.
Everytime I've seen this I've missed placing a closing tag or forgot
to include a required wrapping tag. As an example I had forgot a tr
so my td's were not conained correctly.
Not sure which
Hi there,
When using the 'inputDefaults' option in Form-create and doing the
following:
?php echo $this-Form-create('Enquiry', array('inputDefaults' =
array('div' = array('tag' = 'p'),'between' = 'br /','format' =
array('before', 'label', 'error', 'between', 'input', 'after'; ?
Cake seems
Could it be browser behaviour because p is a block level element?
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 17 Feb 2011, at 16:20, designv...@gmail.com wrote:
Hi there,
When using the 'inputDefaults' option in Form-create and doing the
following:
Ahh wierd... i was viewing the HTML in Firebug and it was messed up,
actually view source in Firefox and its correct...
Hmmm...
(and I know I shouldn't be putting divs inside p tags! hehe)
On Feb 17, 4:27 pm, Jeremy Burns | Class Outfit
jeremybu...@classoutfit.com wrote:
Could it be browser
So that seems to be the issue lord alone knows why
Does anyone know how to change the div to a span for the validation
errors? ;-)
d//t
On Feb 17, 4:32 pm, designv...@gmail.com designv...@gmail.com
wrote:
Ahh wierd... i was viewing the HTML in Firebug and it was messed up,
actually view
In case anyone finds this:
Here's how to change the error message container:
http://book.cakephp.org/view/1401/options-error
And an example:
?php echo $this-Form-create('Artist', array('inputDefaults'
=array('div' = array('tag' = 'p'),'between' = 'br /','error' =
array('wrap' = 'span', 'class'
the error. Looks like a bug...
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php
the error. Looks like a bug...
Also I tried the following:
$temp = $this-Workshop-WorkshopDescription-find('count');
$temp = $this-Workshop-WorkshopDescription-find('all');
$temp = $this-Workshop-WorkshopDescription-find('count');
The results:
SELECT COUNT(*) AS `count` FROM
as expected. When I delete that line, I
still get the error. Looks like a bug...
Also I tried the following:
$temp = $this-Workshop-WorkshopDescription-find('count');
$temp = $this-Workshop-WorkshopDescription-find('all');
$temp = $this-Workshop-WorkshopDescription-find('count');
[snip some
currently beeing
under change, but just a bug...
Just for trying something, try setting recursive to -1 before the
delete statement :)
Enjoy,
John
No change. The api says, it's not affecting delete anyhow:
3.7.8.6 recursive
The recursive property defines how deep CakePHP should go to fetch
that CakePHP v. 2.0 is a development version, thus it
may be buggy :) so maybe you should revert to CakePHP v. 1.3.x unless
you are testing the new version!
Yes, but this doesn't seem to be a new feature that's currently beeing
under change, but just a bug...
Just for trying something, try
of cosy_description_categories.
Looks like a bug, or is there something else I could have done wrong?
It only appears when deleting, not when finding.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org
Sorry for double post...
The above statement is the first that appears in the sql debug table,
directly followed by the delete statement:
DELETE `WorkshopDescription` FROM `cosy_workshop_descriptions` AS
`WorkshopDescription` LEFT JOIN `description_categories` AS
`DescriptionCategory` ON
Make sure that you have associated your models correctly as described
in the CakePHP book at:
http://book.cakephp.org/view/1039/Associations-Linking-Models-Together
Also it is a good idea to show the same associations here in the
thread, so that we may comment on them!
Enjoy,
John
On 6 Feb.,
Oh, forget it! My bad :) You are deleting, so the should be no
associations used in the query!
Enjoy,
John
On 6 Feb., 16:15, John Andersen j.andersen...@gmail.com wrote:
Make sure that you have associated your models correctly as described
in the CakePHP book
I also wonder why there are joins, but they are there automatically...
I tried $this-Workshop-WorkshopDescription-contain() before the
deleting, but then only the SELECT statement is contained (without
joins), the following delete is again with joins.
I also tried the 2. parameter for delete:
1 - 100 of 781 matches
Mail list logo