Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Expressions not working now
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Miss Khushbu  
View profile  
 More options Nov 17 2012, 8:46 am
From: Miss Khushbu <soni.khushbu.2...@gmail.com>
Date: Sat, 17 Nov 2012 05:46:07 -0800 (PST)
Local: Sat, Nov 17 2012 8:46 am
Subject: Expressions not working now

Hi,

I was using this model and every thing was fine till I updated my atk to
git master. now expression is giving some sort of problem.

class Model_HostelRoom extends Model_Table{
    var $table="rooms";

    function init(){

        parent::init();

        $this->hasOne('Hostel','hostel_id');
        $this->addField('room_no');
        $this->addField('capacity');

        // $this->hasMany('HostelRoom','room_id');
        $this->hasMany('RoomAllotement','room_id');

 *       $this->addExpression('alloted')->set(function ($m,$q){
            return $m->refSQL('RoomAllotement')->count();
        });
*    }

}

if I comment this the page works fine.

any suggestions or
what are the changes done in atk master regarding this ..

Thanks in advance ...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Romans Malinovskis  
View profile  
 More options Nov 17 2012, 12:00 pm
From: Romans Malinovskis <rom...@agiletoolkit.org>
Date: Sat, 17 Nov 2012 16:59:44 +0000
Local: Sat, Nov 17 2012 11:59 am
Subject: Re: [atk4] Expressions not working now

It should work fine.

What kind of problem you are experienced ? can you show what’s the difference between $m->debug() before and after you switched branch ?

Regards,
romans

--
I am working with my team on a VERY URGENT project now. I apologize for the delay in answering your email(s).

Romans Malinovskis is the author of the revolutionary PHP Framework: the “Agile Toolkit” (www.agiletoolkit.org). Please show your support by raising awareness about Agile Toolkit.

Refer commercial web development projects towards our skilled developer team: http://www.agiletech.ie/company/

NEW: Get Agile Toolkit Book for your iPad: http://itunes.apple.com/us/book/web-development-agile-toolkit/id57434...
or in PDF: http://agiletoolkit.org/book.pdf


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »