I need only the id to construct the new country object.


2014-04-02 17:13 GMT+03:00 Dionysis Zindros <notifications@github.com>:

> In models/country.php:
>
> > @@ -5,6 +5,17 @@ class Country extends ActiveRecordBase {
> >          public $shortname;
> >          protected static $tableName = 'countries';
> >
> > +        public static function findByShortname( $shortname ) {
> > +            try {
> > +                $country = dbSelectOne( 'countries', [ 'id' ], compact( 'shortname' ) );
>
> countryInfo?
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/dionyziz/endofcodes/pull/186/files#r11206647>
> .
>