public function getMedia(ConnectionInterface $con = null)
    {
        if ($this->aMedia === null && ($this->media_id != 0)) {
            $this->aMedia = ChildMediaQuery::create()->findPk($this->media_id, $con);
            /* The following can be used additionally to
                guarantee the related object contains a reference
                to this object.  This level of coupling may, however, be
                undesirable since it could result in an only partially populated collection
                in the referenced object.
                $this->aMedia->addM2Ps($this);
             */
        }

        return $this->aMedia;
    }
public function getMedia(ConnectionInterface $con = null)
    {
        if ($this->aMedia === null && ($this->media_id != 0)) {
            $this->aMedia = ChildMediaQuery::create()->findPk($this->media_id, $con);
            /* The following can be used additionally to
                guarantee the related object contains a reference
                to this object.  This level of coupling may, however, be
                undesirable since it could result in an only partially populated collection
                in the referenced object.
                $this->aMedia->addM2Ps($this);
             */
        }

        return $this->aMedia;
    }
public function getMedia ( ConnectionInterface $ con = null ) { if ( $ this -> aMedia === null && ( $ this -> media_id != 0 ) ) { $ this -> aMedia = ChildMediaQuery :: create ( ) -> findPk ( $ this -> media_id , $ con ) ; /* The following can be used additionally to
                guarantee the related object contains a reference
                to this object.  This level of coupling may, however, be
                undesirable since it could result in an only partially populated collection
                in the referenced object.
                $this->aMedia->addM2Ps($this);
             */ } return $ this -> aMedia ; }
Get the associated ChildMedia object

@param  ConnectionInterface $con Optional Connection object.
@return ChildMedia The associated ChildMedia object.
@throws PropelException
Get the associated ChildMedia object