src/model/Base/Skill.php
public function setObject(ChildObject $v = null)
    {
        // aggregate_column_relation behavior
        if (null !== $this->aObject && $v !== $this->aObject) {
            $this->oldObjectSkillCount = $this->aObject;
        }
        if ($v === null) {
            $this->setObjectId(NULL);
        } else {
            $this->setObjectId($v->getId());
        }

        $this->aObject = $v;

        // Add binding for other direction of this n:n relationship.
        // If this object has already been added to the ChildObject object, it will not be re-added.
        if ($v !== null) {
            $v->addSkill($this);
        }


        return $this;
    }
public function setObject(ChildObject $v = null)
    {
        // aggregate_column_relation behavior
        if (null !== $this->aObject && $v !== $this->aObject) {
            $this->oldObjectSkillCount = $this->aObject;
        }
        if ($v === null) {
            $this->setObjectId(NULL);
        } else {
            $this->setObjectId($v->getId());
        }

        $this->aObject = $v;

        // Add binding for other direction of this n:n relationship.
        // If this object has already been added to the ChildObject object, it will not be re-added.
        if ($v !== null) {
            $v->addSkill($this);
        }


        return $this;
    }
public function setObject ( ChildObject $ v = null ) { // aggregate_column_relation behavior if ( null !== $ this -> aObject && $ v !== $ this -> aObject ) { $ this -> oldObjectSkillCount = $ this -> aObject ; } if ( $ v === null ) { $ this -> setObjectId ( NULL ) ; } else { $ this -> setObjectId ( $ v -> getId ( ) ) ; } $ this -> aObject = $ v ; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildObject object, it will not be re-added. if ( $ v !== null ) { $ v -> addSkill ( $ this ) ; } return $ this ; }
Declares an association between this object and a ChildObject object.

@param  ChildObject $v
@return $this|\gossi\trixionary\model\Skill The current object (for fluent API support)
@throws PropelException
Declares an association between this object and a ChildObject object .