Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6856735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:55:26+00:00 2026-05-27T01:55:26+00:00

I have the following models classes however netbeans 7.0.1 autocomplete doesn’t work for row

  • 0

I have the following models classes however netbeans 7.0.1 autocomplete doesn’t work for row classes.

Model Class:

class Application_Model_DbTable_Payments extends Zend_Db_Table_Abstract {
    protected $_name = 'payments';
    protected $_rowClass = 'Application_Model_Payment';

}

Row Class:

class Application_Model_Payment extends Zend_Db_Table_Row_Abstract {
    public function setIdentifier($identifier = null){
        return $this->identifier = $identifier;
    }
}

Code:

$paymentsModel = new Application_Model_DbTable_Payments();
$payment = $paymentsModel->find(1)->current();// return an Application_Model_Payment Object 
$payment->setIdentifier();//doesn't appear on netbeans autocomplete, only Zend_Db_Table_Row methods appers

How could I make netbeans show row class methods?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:55:27+00:00Added an answer on May 27, 2026 at 1:55 am

    Because netbeans uses heavily the docblock comments (and in this case find is an inherited method), unless you explicitly put the return type in the comment block for a method, Netbeans hasn’t really got a clue what to do.

    You can give it a hand though by doing adding a block like this:

    /* @var $variable ClassName */
    

    like so in your code

    $paymentsModel = new Application_Model_DbTable_Payments();
    
    /* @var $payment Application_Model_Payment */
    $payment = $paymentsModel->find(1)->current();// return an Application_Model_Payment Object 
    $payment->setIdentifier();
    

    It will ‘hint’ netbeans as to what the variable is.

    UPDATE: Here is an example of doing it from the class/method declaration. In this example $something is instantiation of Application_Model_Token.

    class User
    {
      /**
       * @return Application_Model_Token
       */
      public function reset()
      {
        //Some code etc
        return $something
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following classes: package models; public class Test extends activejdbc.Model { }
I have the following classes in my models file class HardwareNode(models.Model): ip_address = models.CharField(max_length=15)
I have the following classes: Ingredients, Recipe and RecipeContent... class Ingredient(models.Model): name = models.CharField(max_length=30,
Let's say I have the following classes: class Votable(models.Model): name = ... class Vote(models.Model):
I have the following types and classes: namespace MVC.Models public class Page { public
I have the following classes in my Model: public abstract class Entity : IEntity
I have the following models class Person(models.Model): name = models.CharField(max_length=100) class Employee(Person): job =
I have the following models: class City(models.Model): name = models.CharField(max_length=100) class Pizza(models.Model): name =
I have the following model classes declared by SQLAlchemy: class User(Base): id = Column(Integer,
The scenario Suppose I have the following two model classes: public class ProductColor {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.